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.95 by root, Sat Nov 17 23:40:03 2018 UTC vs.
Revision 1.96 by root, Wed Dec 5 19:18:31 2018 UTC

1029} 1029}
1030 1030
1031int 1031int
1032command_abil (object *op, char *params) 1032command_abil (object *op, char *params)
1033{ 1033{
1034 char thing[20], thing2[20]; 1034 char thing[80], thing2[80];
1035 int iii; 1035 int iii;
1036 char buf[MAX_BUF]; 1036 char buf[MAX_BUF];
1037 1037
1038 iii = 0; 1038 iii = 0;
1039 thing[0] = '\0'; 1039 thing[0] = '\0';
1040 thing2[0] = '\0'; 1040 thing2[0] = '\0';
1041 if (params == NULL || !sscanf (params, "%s %s %d", thing, thing2, &iii) || thing == NULL) 1041 if (!params || 3 != sscanf (params, "%79s %79s %d", thing, thing2, &iii))
1042 { 1042 {
1043 new_draw_info (NDI_UNIQUE, 0, op, "Who?"); 1043 new_draw_info (NDI_UNIQUE, 0, op, "Who?");
1044 return 1; 1044 return 1;
1045 } 1045 }
1046 1046
1047 if (thing2 == NULL) 1047 if (!*thing2)
1048 { 1048 {
1049 new_draw_info (NDI_UNIQUE, 0, op, "You can't change that."); 1049 new_draw_info (NDI_UNIQUE, 0, op, "You can't change that.");
1050 return 1; 1050 return 1;
1051 } 1051 }
1052 1052

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines