From ed857417efa4b0359ab4934ce768ccc5467646f1 Mon Sep 17 00:00:00 2001 From: Bukz Date: Thu, 14 Apr 2011 12:17:15 +0000 Subject: [PATCH] bots in plclips bug fix git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6245 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/physics.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/src/physics.cpp b/source/src/physics.cpp index bc0e92ce..0b33c96a 100644 --- a/source/src/physics.cpp +++ b/source/src/physics.cpp @@ -116,7 +116,8 @@ bool mmcollide(physent *d, float &hi, float &lo) // collide with a map loopv(ents) { entity &e = ents[i]; - if(e.type==CLIP || (e.type == PLCLIP && d->type == ENT_PLAYER)) + // if(e.type==CLIP || (e.type == PLCLIP && d->type == ENT_PLAYER)) + if (e.type==CLIP || (e.type == PLCLIP && (d->type == ENT_BOT || d->type == ENT_PLAYER))) // don't allow bots to hack themselves into plclips - Bukz 2011/04/14 { if(fabs(e.x-d->o.x) < e.attr2 + d->radius && fabs(e.y-d->o.y) < e.attr3 + d->radius) {