Skip to content

Commit 013fbe4

Browse files
committed
Cleanup engine sheduler
1 parent 8a7d608 commit 013fbe4

File tree

2 files changed

+95
-108
lines changed

2 files changed

+95
-108
lines changed

src/xrEngine/ISheduled.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ ScheduledBase::ScheduledBase()
1313
#endif
1414
}
1515

16-
extern BOOL g_bSheduleInProgress;
1716
ScheduledBase::~ScheduledBase()
1817
{
1918
VERIFY2(!Engine.Sheduler.Registered(this), make_string("0x%08x : %s", this, *shedule_Name()));
2019

20+
// XXX: WTF???
2121
// sad, but true
2222
// we need this to become MASTER_GOLD
2323
#ifndef DEBUG
@@ -33,9 +33,9 @@ void ScheduledBase::shedule_Update(u32 dt)
3333
if (shedule.dbg_startframe == shedule.dbg_update_shedule)
3434
{
3535
LPCSTR name = "unknown";
36-
IGameObject* O = dynamic_cast<IGameObject*>(this);
37-
if (O)
38-
name = *O->cName();
36+
const auto object = dynamic_cast<IGameObject*>(this);
37+
if (object)
38+
name = object->cName().c_str();
3939
xrDebug::Fatal(DEBUG_INFO, "'shedule_Update' called twice per frame for %s", name);
4040
}
4141
shedule.dbg_update_shedule = shedule.dbg_startframe;

0 commit comments

Comments
 (0)