Browse Source

Merge pull request #20 from nekonomicon/minor_bugfixes

Fix some crashes.
clcampaign
Alibek Omarov 8 years ago committed by GitHub
parent
commit
8d6f8c1a73
  1. 2
      dlls/talkmonster.cpp
  2. 4
      pm_shared/pm_shared.c

2
dlls/talkmonster.cpp

@ -1342,6 +1342,8 @@ BOOL CTalkMonster::CanFollow( void )
{ {
if( m_MonsterState == MONSTERSTATE_SCRIPT ) if( m_MonsterState == MONSTERSTATE_SCRIPT )
{ {
if( !m_pCine )
return FALSE;
if( !m_pCine->CanInterrupt() ) if( !m_pCine->CanInterrupt() )
return FALSE; return FALSE;
} }

4
pm_shared/pm_shared.c

@ -30,8 +30,8 @@
#ifdef CLIENT_DLL #ifdef CLIENT_DLL
// Spectator Mode // Spectator Mode
int iJumpSpectator; int iJumpSpectator;
float vJumpOrigin[3]; extern float vJumpOrigin[3];
float vJumpAngles[3]; extern float vJumpAngles[3];
#endif #endif
static int pm_shared_initialized = 0; static int pm_shared_initialized = 0;

Loading…
Cancel
Save