… | |
… | |
58 | |
58 | |
59 | sprintf (buf, "Set debug level to %d.", i); |
59 | sprintf (buf, "Set debug level to %d.", i); |
60 | new_draw_info (NDI_UNIQUE, 0, op, buf); |
60 | new_draw_info (NDI_UNIQUE, 0, op, buf); |
61 | return 1; |
61 | return 1; |
62 | } |
62 | } |
63 | |
|
|
64 | |
63 | |
65 | /* |
64 | /* |
66 | * Those dumps should be just one dump with good parser |
65 | * Those dumps should be just one dump with good parser |
67 | */ |
66 | */ |
68 | |
67 | |
… | |
… | |
270 | |
269 | |
271 | /* |
270 | /* |
272 | * Actual commands. |
271 | * Actual commands. |
273 | * Those should be in small separate files (c_object.c, c_wiz.c, cmove.c,...) |
272 | * Those should be in small separate files (c_object.c, c_wiz.c, cmove.c,...) |
274 | */ |
273 | */ |
275 | |
274 | static int |
276 | int |
|
|
277 | onoff_value (const char *line) |
275 | onoff_value (const char *line) |
278 | { |
276 | { |
279 | int i; |
277 | int i; |
280 | |
278 | |
281 | if (sscanf (line, "%d", &i)) |
279 | if (sscanf (line, "%d", &i)) |