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.61 by root, Sat Dec 20 02:32:31 2008 UTC vs.
Revision 1.63 by root, Sun Dec 28 03:59:19 2008 UTC

969command_nowiz (object *op, char *params) 969command_nowiz (object *op, char *params)
970{ /* 'nodm' is alias */ 970{ /* 'nodm' is alias */
971 CLEAR_FLAG (op, FLAG_WIZ); 971 CLEAR_FLAG (op, FLAG_WIZ);
972 CLEAR_FLAG (op, FLAG_WIZPASS); 972 CLEAR_FLAG (op, FLAG_WIZPASS);
973 CLEAR_FLAG (op, FLAG_WIZCAST); 973 CLEAR_FLAG (op, FLAG_WIZCAST);
974 CLEAR_FLAG (op, FLAG_WIZLOOK);
974 975
975 if (op->contr->hidden) 976 if (op->contr->hidden)
976 { 977 {
977 new_draw_info (NDI_UNIQUE, 0, op, "You are no longer hidden from other players"); 978 new_draw_info (NDI_UNIQUE, 0, op, "You are no longer hidden from other players");
978 op->map->players++; 979 op->map->players++;
1043 if (checkdm (op, op->name, (params ? params : "*"), op->contr->ns->host)) 1044 if (checkdm (op, op->name, (params ? params : "*"), op->contr->ns->host))
1044 { 1045 {
1045 SET_FLAG (op, FLAG_WIZ); 1046 SET_FLAG (op, FLAG_WIZ);
1046 SET_FLAG (op, FLAG_WIZPASS); 1047 SET_FLAG (op, FLAG_WIZPASS);
1047 SET_FLAG (op, FLAG_WIZCAST); 1048 SET_FLAG (op, FLAG_WIZCAST);
1049 SET_FLAG (op, FLAG_WIZLOOK);
1048 1050
1049 new_draw_info (NDI_UNIQUE, 0, op, "Ok, you are the Dungeon Master!"); 1051 new_draw_info (NDI_UNIQUE, 0, op, "Ok, you are the Dungeon Master!");
1050 /*
1051 * Remove setting flying here - that won't work, because next
1052 * fix_player() is called that will get cleared - proper solution
1053 * is probably something like a wiz_force which gives that and any
1054 * other desired abilities.
1055 */
1056 op->contr->clear_los (0);
1057 op->contr->write_buf[0] = '\0'; 1052 op->contr->write_buf[0] = '\0';
1058 1053
1059 if (!silent) 1054 if (!silent)
1060 new_draw_info (NDI_UNIQUE | NDI_ALL | NDI_LT_GREEN, 1, NULL, "The Dungeon Master has arrived!"); 1055 new_draw_info (NDI_UNIQUE | NDI_ALL | NDI_LT_GREEN, 1, NULL, "The Dungeon Master has arrived!");
1061 1056

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines