a little fixes

This commit is contained in:
Dmitry 2015-06-10 23:30:48 +03:00
commit 02fe78ceee
4 changed files with 36 additions and 74 deletions

View file

@ -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);