ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/c_wiz.C
(Generate patch)

Comparing deliantra/server/server/c_wiz.C (file contents):
Revision 1.1 by elmex, Sun Aug 13 17:16:04 2006 UTC vs.
Revision 1.2 by root, Thu Aug 24 13:13:49 2006 UTC

1/* 1/*
2 * static char *rcsid_c_wiz_c = 2 * static char *rcsid_c_wiz_c =
3 * "$Id: c_wiz.C,v 1.1 2006/08/13 17:16:04 elmex Exp $"; 3 * "$Id: c_wiz.C,v 1.2 2006/08/24 13:13:49 root Exp $";
4 */ 4 */
5 5
6/* 6/*
7 CrossFire, A Multiplayer game for X-windows 7 CrossFire, A Multiplayer game for X-windows
8 8
1116 calc_perm_exp(pl->ob); 1116 calc_perm_exp(pl->ob);
1117 player_lvl_adj(pl->ob, NULL); 1117 player_lvl_adj(pl->ob, NULL);
1118 1118
1119 if (settings.real_wiz == FALSE) 1119 if (settings.real_wiz == FALSE)
1120 SET_FLAG(pl->ob, FLAG_WAS_WIZ); 1120 SET_FLAG(pl->ob, FLAG_WAS_WIZ);
1121 return 1;
1122}
1123
1124int command_speed(object *op, char *params) {
1125 int i;
1126
1127 if (params == NULL || !sscanf(params, "%d", &i)) {
1128 sprintf(errmsg, "Current speed is %ld", max_time);
1129 new_draw_info(NDI_UNIQUE, 0, op, errmsg);
1130 return 1;
1131 }
1132
1133 set_max_time(i);
1134 reset_sleep();
1135 new_draw_info(NDI_UNIQUE, 0, op, "The speed is changed.");
1136 return 1; 1121 return 1;
1137} 1122}
1138 1123
1139/**************************************************************************/ 1124/**************************************************************************/
1140/* Mods made by Tyler Van Gorder, May 10-13, 1992. */ 1125/* Mods made by Tyler Van Gorder, May 10-13, 1992. */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines