mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Removed CGAME_DLL check
This commit is contained in:
parent
29f328abf0
commit
5b5fb1c4d6
1 changed files with 4 additions and 8 deletions
|
@ -26,10 +26,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
#include "scriptexception.h"
|
||||
#include "str.h"
|
||||
|
||||
#ifdef CGAME_DLL
|
||||
#include "../cgame_hook/script/centity.h"
|
||||
#endif
|
||||
|
||||
#ifdef GAME_DLL
|
||||
#include "archive.h"
|
||||
#include "g_local.h"
|
||||
|
@ -60,11 +56,11 @@ int HashCode< ScriptVariable >( const ScriptVariable& key )
|
|||
case VARIABLE_INTEGER:
|
||||
return key.m_data.intValue;
|
||||
|
||||
#if defined (GAME_DLL)
|
||||
case VARIABLE_LISTENER:
|
||||
#if defined ( GAME_DLL ) || defined ( CGAME_DLL )
|
||||
e = ( Entity * )key.listenerValue();
|
||||
e = (Entity*)key.listenerValue();
|
||||
|
||||
if( checkInheritance( &Entity::ClassInfo, e->classinfo() ) )
|
||||
if (checkInheritance(&Entity::ClassInfo, e->classinfo()))
|
||||
{
|
||||
return e->entnum;
|
||||
}
|
||||
|
@ -662,7 +658,7 @@ qboolean ScriptVariable::IsEntity( void )
|
|||
if( type == VARIABLE_LISTENER )
|
||||
{
|
||||
if( !m_data.listenerValue->Pointer() ||
|
||||
#if defined ( CGAME_DLL ) || defined ( GAME_DLL )
|
||||
#if defined ( CGAME_DLL )
|
||||
checkInheritance( Entity::classinfostatic(), m_data.listenerValue->Pointer()->classinfo() )
|
||||
#else
|
||||
0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue