detect and log remote flag pickups

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4314 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
ac_stef
2009-04-03 16:20:37 +00:00
parent f04648fdb0
commit 7f9c99a615
3 changed files with 48 additions and 5 deletions
+2 -2
View File
@@ -342,7 +342,7 @@ mapstats *loadmapstats(const char *filename, bool getlayout)
endianswap(&e, sizeof(short), 4);
TRANSFORMOLDENTITIES(s.hdr)
if(e.type == PLAYERSTART && (e.attr2 == 0 || e.attr2 == 1 || e.attr2 == 100)) s.spawns[e.attr2 == 100 ? 2 : e.attr2]++;
if(e.type == CTF_FLAG && (e.attr2 == 0 || e.attr2 == 1)) s.flags[e.attr2]++;
if(e.type == CTF_FLAG && (e.attr2 == 0 || e.attr2 == 1)) { s.flags[e.attr2]++; s.flagents[e.attr2] = i; }
s.entcnt[e.type]++;
enttypes[i] = e.type;
entposs[i * 3] = e.x; entposs[i * 3 + 1] = e.y; entposs[i * 3 + 2] = e.z;
@@ -383,7 +383,7 @@ mapstats *loadmapstats(const char *filename, bool getlayout)
floor = gzgetc(f);
ceil = gzgetc(f);
if(floor >= ceil && ceil > -128) floor = ceil - 1; // for pre 12_13
if(type == FHF) floor = 1;
if(type == FHF) floor = -128;
gzgetc(f); gzgetc(f);
if(s.hdr.version>=2) gzgetc(f);
if(s.hdr.version>=5) gzgetc(f);