about summary refs log tree commit diff
path: root/src/engine/shared/demo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/shared/demo.h')
-rw-r--r--src/engine/shared/demo.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/engine/shared/demo.h b/src/engine/shared/demo.h
index 79b0021a..d8ce70b2 100644
--- a/src/engine/shared/demo.h
+++ b/src/engine/shared/demo.h
@@ -22,6 +22,7 @@ class CDemoRecorder : public IDemoRecorder
 	IOHANDLE m_File;
 	int m_LastTickMarker;
 	int m_LastKeyFrame;
+	int m_FirstTick;
 	unsigned char m_aLastSnapshotData[CSnapshot::MAX_SIZE];
 	class CSnapshotDelta *m_pSnapshotDelta;
 	
@@ -37,6 +38,8 @@ public:
 	void RecordMessage(const void *pData, int Size);
 
 	bool IsRecording() const { return m_File != 0; }
+
+	int TickCount() const { return m_LastTickMarker - m_FirstTick; }
 };
 
 class CDemoPlayer : public IDemoPlayer