Feature #598 » 0080-savegame-Save-ACTION_NONE-as-1.patch
server/savegame/savecompat.c | ||
---|---|---|
}
|
||
if (!found) {
|
||
secfile_insert_int(loading->file, ACTION_NONE, "player%d.u%d.action",
|
||
secfile_insert_int(loading->file, -1, "player%d.u%d.action",
|
||
plrno, unro);
|
||
}
|
||
}
|
||
... | ... | |
}
|
||
if (!found) {
|
||
secfile_insert_int(loading->file, ACTION_NONE, "player%d.u%d.action",
|
||
secfile_insert_int(loading->file, -1, "player%d.u%d.action",
|
||
plrno, unro);
|
||
}
|
||
}
|
server/savegame/savegame3.c | ||
---|---|---|
sg_warn_ret_val(secfile_lookup_int(loading->file, &ei,
|
||
"%s.action", unitstr), FALSE,
|
||
"%s", secfile_error());
|
||
if (ei == ACTION_NONE) {
|
||
if (ei == -1) {
|
||
action = ACTION_NONE;
|
||
} else {
|
||
action = loading->action.order[ei];
|
||
... | ... | |
secfile_insert_int(saving->file, punit->activity, "%s.activity", buf);
|
||
secfile_insert_int(saving->file, punit->activity_count,
|
||
"%s.activity_count", buf);
|
||
secfile_insert_int(saving->file, punit->action, "%s.action", buf);
|
||
if (punit->action == ACTION_NONE) {
|
||
secfile_insert_int(saving->file, -1, "%s.action", buf);
|
||
} else {
|
||
secfile_insert_int(saving->file, punit->action, "%s.action", buf);
|
||
}
|
||
if (punit->activity_target == NULL) {
|
||
secfile_insert_int(saving->file, -1, "%s.activity_tgt", buf);
|
||
} else {
|