From b99ac459bea247f2a2474b345b1dd69e4bd59a69 Mon Sep 17 00:00:00 2001 From: oy Date: Sun, 4 Dec 2011 14:04:12 +0100 Subject: fixed envelope rendering when seeking in the demo player --- src/game/client/components/maplayers.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/game/client/components/maplayers.h') 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 -- cgit 1.4.1