footsteps

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1357 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-10-14 12:58:26 +00:00
parent 7befa37ee5
commit 6f4868ab9f
15 changed files with 266 additions and 148 deletions
+2 -1
View File
@@ -214,6 +214,7 @@ void load_world(char *mname) // still supports all map formats that have
preparectf(true);
cleardlights();
pruneundos();
clearmapsounds();
setnames(mname);
gzFile f = opengzfile(cgzname, "rb9");
if(!f) { conoutf("could not read map %s", cgzname); return; }
@@ -239,7 +240,7 @@ void load_world(char *mname) // still supports all map formats that have
entity &e = ents.add();
gzread(f, &e, sizeof(persistent_entity));
endianswap(&e, sizeof(short), 4);
e.spawned = false;
e.spawned = e.soundinuse = false;
if(e.type==LIGHT)
{
if(!e.attr2) e.attr2 = 255; // needed for MAPVERSION<=2