mirror of
https://github.com/celisej567/source-sdk-2013.git
synced 2026-09-23 20:09:45 +03:00
Added WIP v142 toolset support based on Source SDK 2013: Community Edition repo
This commit is contained in:
@@ -7,12 +7,12 @@
|
||||
|
||||
|
||||
#include "cbase.h"
|
||||
#ifdef _WIN32
|
||||
#if POSIX || _MSC_VER >= 1900
|
||||
#include <typeinfo>
|
||||
#elif defined(_WIN32)
|
||||
#include "typeinfo.h"
|
||||
// BUGBUG: typeinfo stomps some of the warning settings (in yvals.h)
|
||||
#pragma warning(disable:4244)
|
||||
#elif POSIX
|
||||
#include <typeinfo>
|
||||
#else
|
||||
#error "need typeinfo defined"
|
||||
#endif
|
||||
@@ -942,8 +942,8 @@ void CBaseEntity::PhysicsDispatchThink( BASEPTR thinkFunc )
|
||||
if ( thinkLimit )
|
||||
{
|
||||
// calculate running time of the AI in milliseconds
|
||||
float time = ( engine->Time() - startTime ) * 1000.0f;
|
||||
if ( time > thinkLimit )
|
||||
float flTime = ( engine->Time() - startTime ) * 1000.0f;
|
||||
if ( flTime > thinkLimit )
|
||||
{
|
||||
#if defined( _XBOX ) && !defined( _RETAIL )
|
||||
if ( vprof_think_limit.GetBool() )
|
||||
@@ -956,14 +956,14 @@ void CBaseEntity::PhysicsDispatchThink( BASEPTR thinkFunc )
|
||||
CAI_BaseNPC *pNPC = MyNPCPointer();
|
||||
if (pNPC && pNPC->GetCurSchedule())
|
||||
{
|
||||
pNPC->ReportOverThinkLimit( time );
|
||||
pNPC->ReportOverThinkLimit( flTime );
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef _WIN32
|
||||
Msg( "%s(%s) thinking for %.02f ms!!!\n", GetClassname(), typeid(this).raw_name(), time );
|
||||
Msg( "%s(%s) thinking for %.02f ms!!!\n", GetClassname(), typeid(this).raw_name(), flTime );
|
||||
#elif POSIX
|
||||
Msg( "%s(%s) thinking for %.02f ms!!!\n", GetClassname(), typeid(this).name(), time );
|
||||
Msg( "%s(%s) thinking for %.02f ms!!!\n", GetClassname(), typeid(this).name(), flTime );
|
||||
#else
|
||||
#error "typeinfo"
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user