Skip to content

Commit

Permalink
Добавил тут отладочный вывод, чтобы отлавливать всякие чудеса
Browse files Browse the repository at this point in the history
  • Loading branch information
xrSimpodin committed Dec 9, 2018
1 parent c039c44 commit cd478f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ogsr_engine/xrGame/GameObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ void CGameObject::net_Destroy ()
#endif

VERIFY (m_spawned);
if (!m_spawned)
Msg("!![%s] Already destroyed object detected: [%s]", __FUNCTION__, this->cName().c_str());

if(animation_movement_controlled())
destroy_anim_mov_ctrl ();

Expand Down Expand Up @@ -213,6 +216,9 @@ void VisualCallback(CKinematics *tpKinematics);
BOOL CGameObject::net_Spawn (CSE_Abstract* DC)
{
VERIFY (!m_spawned);
if (m_spawned)
Msg("!![%s] Already spawned object detected: [%s]", __FUNCTION__, this->cName().c_str());

m_spawned = true;
m_spawn_time = Device.dwFrame;
CSE_Abstract *E = (CSE_Abstract*)DC;
Expand Down

0 comments on commit cd478f9

Please sign in to comment.