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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user