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
+1 -1
View File
@@ -143,7 +143,7 @@ bool mmcollide(physent *d, float &hi, float &lo) // collide with a map
return true;
}
bool objcollide(physent *d, vec &objpos, float objrad, float objheight) // collide with custom/typeless objects
bool objcollide(physent *d, const vec &objpos, float objrad, float objheight) // collide with custom/typeless objects
{
const float r = d->radius+objrad;
if(fabs(objpos.x-d->o.x)<r && fabs(objpos.y-d->o.y)<r)