don't modify flag ent during ctf games

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3233 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-10-24 21:55:58 +00:00
parent e8d4276e08
commit 80ca208bcc
5 changed files with 16 additions and 18 deletions
+3 -3
View File
@@ -647,9 +647,9 @@ void preparectf(bool cleanonly=false)
if(e.attr2>2) { conoutf("\f3invalid ctf-flag entity (%i)", i); e.attr2 = 0; }
flaginfo &f = flaginfos[e.attr2];
f.flagent = &e;
f.originalpos.x = (float) e.x;
f.originalpos.y = (float) e.y;
f.originalpos.z = (float) e.z;
f.pos.x = (float) e.x;
f.pos.y = (float) e.y;
f.pos.z = (float) e.z;
}
}
}