a little fixes
This commit is contained in:
parent
0314cee6d3
commit
02fe78ceee
4 changed files with 36 additions and 74 deletions
|
|
@ -997,12 +997,12 @@ void Touch (edict_t *pentTouched, edict_t *pentOther)
|
|||
// the two entities both have velocities, for example two players colliding, this function
|
||||
// is called twice, once for each entity moving.
|
||||
|
||||
if (!IsEntityNull (pentTouched) && (pentTouched->v.flags & FL_FAKECLIENT))
|
||||
if (!IsEntityNull (pentOther) && (pentOther->v.flags & FL_FAKECLIENT))
|
||||
{
|
||||
Bot *touched = g_botManager->GetBot (pentTouched);
|
||||
Bot *bot = g_botManager->GetBot (pentOther);
|
||||
|
||||
if (touched != NULL)
|
||||
touched->VerifyBreakable (pentOther);
|
||||
if (bot != NULL)
|
||||
bot->VerifyBreakable (pentTouched);
|
||||
}
|
||||
if (g_isMetamod)
|
||||
RETURN_META (MRES_IGNORED);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue