about summary refs log tree commit diff
path: root/src/game/client/components/maplayers.h
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-12-04 14:04:12 +0100
committeroy <Tom_Adams@web.de>2011-12-04 14:04:12 +0100
commitb99ac459bea247f2a2474b345b1dd69e4bd59a69 (patch)
tree679baad0e407cc257a6601c02f5399d33603b322 /src/game/client/components/maplayers.h
parente411d8f5917ac3b47f6b5f10432d045dda62e814 (diff)
downloadzcatch-b99ac459bea247f2a2474b345b1dd69e4bd59a69.tar.gz
zcatch-b99ac459bea247f2a2474b345b1dd69e4bd59a69.zip
fixed envelope rendering when seeking in the demo player
Diffstat (limited to 'src/game/client/components/maplayers.h')
-rw-r--r--src/game/client/components/maplayers.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/client/components/maplayers.h b/src/game/client/components/maplayers.h
index 694633ee..d0efcfc7 100644
--- a/src/game/client/components/maplayers.h
+++ b/src/game/client/components/maplayers.h
@@ -8,6 +8,9 @@ class CMapLayers : public CComponent
 {
 	CLayers *m_pLayers;	// todo refactor: maybe remove it and access it through client*
 	int m_Type;
+	int m_CurrentLocalTick;
+	int m_LastLocalTick;
+	bool m_EnvelopeUpdate;
 
 	void MapScreenToGroup(float CenterX, float CenterY, CMapItemGroup *pGroup);
 	static void EnvelopeEval(float TimeOffset, int Env, float *pChannels, void *pUser);
@@ -21,6 +24,8 @@ public:
 	CMapLayers(int Type);
 	virtual void OnInit();
 	virtual void OnRender();
+
+	void EnvelopeUpdate();
 };
 
 #endif