Record raw arguments, to be used in the next changesets:
(player): New member comtail. (parse): New parameter tail. Reorder parameter list. (command, execute): Pass player->comtail. (player_login, emp_config, do_unit_move): Pass NULL. No functional change.
This commit is contained in:
parent
3fcee8ddd1
commit
90631d56ed
7 changed files with 33 additions and 26 deletions
|
@ -99,7 +99,7 @@ emp_config(char *file)
|
|||
for (i = 0; buf[i] && isspace(buf[i]); ++i) ;
|
||||
if (!buf[i] || buf[i] == '#')
|
||||
continue;
|
||||
if (parse(buf, av, NULL, scanspace, NULL) < 0) {
|
||||
if (parse(buf, scanspace, av, NULL, NULL, NULL) < 0) {
|
||||
fprintf(stderr, "%s:%d: Can't parse line %s", file, lno, buf);
|
||||
errors = 1;
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue