summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ClientHandle.h')
-rw-r--r--src/ClientHandle.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ClientHandle.h b/src/ClientHandle.h
index 32e894d41..60a09f30b 100644
--- a/src/ClientHandle.h
+++ b/src/ClientHandle.h
@@ -131,14 +131,15 @@ public: // tolua_export
/** Called while the client is being ticked from the world via its cPlayer object */
void Tick(float a_Dt);
-
- /** Called while the client is being ticked from the cServer object */
- void ServerTick(float a_Dt);
void Destroy(void);
bool IsPlaying (void) const { return (m_State == csPlaying); }
- bool IsDestroyed (void) const { return (m_State == csDestroyed); }
+ bool IsDestroyed (void) const
+ {
+ ASSERT((m_State != csDestroyed) || (m_Player == nullptr));
+ return (m_State == csDestroyed);
+ }
bool IsDestroying(void) const { return (m_State == csDestroying); }
// The following functions send the various packets: