have the waterlevel variable reflect the actual value of the map

This commit is contained in:
ac-stef
2014-05-15 11:43:37 +02:00
parent ff8aea940d
commit 2c2395d97a
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -378,6 +378,7 @@ bool load_world(char *mname) // still supports all map formats that have
hdr.waterlevel = -100000;
hdr.ambient = 0;
}
setvar("waterlevel", hdr.waterlevel);
ents.shrink(0);
loopi(3) numspawn[i] = 0;
loopi(2) numflagspawn[i] = 0;