View Single Post
Re: Permanent crash on cs_bigbrother_beta1
Old
  (#15)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: Permanent crash on cs_bigbrother_beta1 - 30-05-2004

try changing it to:
Code:
bool IsAlive (edict_t *pEdict)
{
   if (FNullEnt(pEdict)) // added this
      return FALSE;      // added this
   return ((pEdict->v.deadflag == DEAD_NO)
           && (pEdict->v.health > 0)
           && (pEdict->v.movetype != MOVETYPE_NOCLIP));
}
*edit*: added some comments to show difference

*edit2*: oops.... you have already tried this code...
Perhaps there's some invalid memory access in your code. Invalid memory access usually can cause weird crashes *elsewhere*.

Last edited by Whistler; 30-05-2004 at 03:22..
  
Reply With Quote