From a393ec81814dc611cf08be17010dd6822093b67c Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sat, 11 Nov 2006 18:50:00 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@594 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/savegamedemo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/savegamedemo.cpp b/source/src/savegamedemo.cpp index b020eb10..00a0c61f 100644 --- a/source/src/savegamedemo.cpp +++ b/source/src/savegamedemo.cpp @@ -43,7 +43,7 @@ void savestate(char *fn) f = gzopen(fn, "wb9"); if(!f) { conoutf("could not write %s", fn); return; }; gzwrite(f, (void *)"CUBESAVE", 8); - gzputc(f, SDL_BYTEORDER==SDL_LITTL_ENDIAN ? 1 : 0); + gzputc(f, SDL_BYTEORDER==SDL_LIL_ENDIAN ? 1 : 0); gzputi(SAVEGAMEVERSION); gzputi(sizeof(dynent)); gzwrite(f, getclientmap(), _MAXDEFSTR); @@ -75,7 +75,7 @@ void loadstate(char *fn) string buf; gzread(f, buf, 8); if(strncmp(buf, "CUBESAVE", 8)) goto out; - if(gzgetc(f)!=(SDL_BYTEORDER==SDL_LITTL_ENDIAN ? 1 : 0)) goto out; // not supporting save->load accross incompatible architectures simpifies things a LOT + if(gzgetc(f)!=(SDL_BYTEORDER==SDL_LIL_ENDIAN ? 1 : 0)) goto out; // not supporting save->load accross incompatible architectures simpifies things a LOT if(gzgeti()!=SAVEGAMEVERSION || gzgeti()!=sizeof(dynent)) goto out; string mapname; gzread(f, mapname, _MAXDEFSTR);