Fix syntax for saved games to be consistant
This commit is contained in:
parent
6867950765
commit
c3719ea74e
2 changed files with 4 additions and 4 deletions
src/unit
|
@ -591,7 +591,7 @@ local SCM CclUnit(SCM list)
|
|||
list=gh_cdr(list);
|
||||
unit->IX=gh_scm2int(gh_car(value));
|
||||
unit->IY=gh_scm2int(gh_cadr(value));
|
||||
} else if( gh_eq_p(value,gh_symbol2scm("seenpixel")) ) {
|
||||
} else if( gh_eq_p(value,gh_symbol2scm("seen-pixel")) ) {
|
||||
value=gh_car(list);
|
||||
list=gh_cdr(list);
|
||||
unit->SeenIX=gh_scm2int(gh_car(value));
|
||||
|
@ -620,7 +620,7 @@ local SCM CclUnit(SCM list)
|
|||
unit->Burning=1;
|
||||
} else if( gh_eq_p(value,gh_symbol2scm("destroyed")) ) {
|
||||
unit->Destroyed=1;
|
||||
} else if( gh_eq_p(value,gh_symbol2scm("seendestroyed")) ) {
|
||||
} else if( gh_eq_p(value,gh_symbol2scm("seen-destroyed")) ) {
|
||||
unit->SeenDestroyed=1;
|
||||
} else if( gh_eq_p(value,gh_symbol2scm("removed")) ) {
|
||||
unit->Removed=1;
|
||||
|
|
|
@ -4244,7 +4244,7 @@ global void SaveUnit(const Unit* unit,FILE* file)
|
|||
fprintf(file, "'stats %d\n " ,unit->Player->Player);
|
||||
#endif
|
||||
fprintf(file,"'pixel '(%d %d) ",unit->IX,unit->IY);
|
||||
fprintf(file,"'seenpixel '(%d %d) ",unit->SeenIX,unit->SeenIY);
|
||||
fprintf(file,"'seen-pixel '(%d %d) ",unit->SeenIX,unit->SeenIY);
|
||||
fprintf(file,"'%sframe %d ",
|
||||
unit->Frame<0 ? "flipped-" : "" ,unit->Frame<0?-unit->Frame:unit->Frame);
|
||||
if( unit->SeenFrame!=UnitNotSeen ) {
|
||||
|
@ -4265,7 +4265,7 @@ global void SaveUnit(const Unit* unit,FILE* file)
|
|||
fprintf(file," 'destroyed");
|
||||
}
|
||||
if( unit->SeenDestroyed ) {
|
||||
fprintf(file," 'seendestroyed");
|
||||
fprintf(file," 'seen-destroyed");
|
||||
}
|
||||
if( unit->Removed ) {
|
||||
fprintf(file," 'removed");
|
||||
|
|
Loading…
Add table
Reference in a new issue