mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-02-26 13:41:11 +03:00
Fixed an issue with env_instructor_hint crashing in some maps
This commit is contained in:
parent
6b13b83231
commit
4bc56b214b
@ -8,6 +8,9 @@
|
||||
#include "cbase.h"
|
||||
#include "baseentity.h"
|
||||
#include "world.h"
|
||||
#ifdef MAPBASE
|
||||
#include "eventqueue.h"
|
||||
#endif
|
||||
|
||||
#ifdef INFESTED_DLL
|
||||
#include "asw_marine.h"
|
||||
@ -135,6 +138,8 @@ CEnvInstructorHint::CEnvInstructorHint( void )
|
||||
//-----------------------------------------------------------------------------
|
||||
void CEnvInstructorHint::OnRestore( void )
|
||||
{
|
||||
BaseClass::OnRestore();
|
||||
|
||||
int iTimeLeft = 0;
|
||||
if ( m_flActiveUntil < 0.0f )
|
||||
{
|
||||
@ -151,8 +156,7 @@ void CEnvInstructorHint::OnRestore( void )
|
||||
|
||||
int iOriginalTimeout = m_iTimeout;
|
||||
m_iTimeout = iTimeLeft;
|
||||
inputdata_t inputdata;
|
||||
InputShowHint( inputdata );
|
||||
g_EventQueue.AddEvent( this, "ShowHint", 0.01f, NULL, this );
|
||||
m_iTimeout = iOriginalTimeout;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user