better loop for mapsounds, const fixes

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2377 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-08-24 16:12:53 +00:00
parent 63cf457134
commit 864098bdc8
5 changed files with 67 additions and 44 deletions
+1 -1
View File
@@ -260,7 +260,7 @@ bool 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 = e.soundinuse = false;
e.spawned = false;
if(e.type==LIGHT)
{
if(!e.attr2) e.attr2 = 255; // needed for MAPVERSION<=2