diff options
| author | oy <Tom_Adams@web.de> | 2010-09-19 16:36:10 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-09-19 16:36:10 +0200 |
| commit | cf2d46d3ba1ee53da02dd78092c7223c1e3787fa (patch) | |
| tree | 16f18a96294073a682f7efc6ee96873727b851c9 /src/game/client | |
| parent | 35e9c769403b7647e6348237b5514214575a1a50 (diff) | |
| download | zcatch-cf2d46d3ba1ee53da02dd78092c7223c1e3787fa.tar.gz zcatch-cf2d46d3ba1ee53da02dd78092c7223c1e3787fa.zip | |
increased deadzone when seeking through the file in the demo player
Diffstat (limited to 'src/game/client')
| -rw-r--r-- | src/game/client/components/menus_demo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/client/components/menus_demo.cpp b/src/game/client/components/menus_demo.cpp index a5ca860a..9a538e70 100644 --- a/src/game/client/components/menus_demo.cpp +++ b/src/game/client/components/menus_demo.cpp @@ -106,7 +106,7 @@ void CMenus::RenderDemoPlayer(CUIRect MainView) { static float PrevAmount = 0.0f; float Amount = (UI()->MouseX()-SeekBar.x)/(float)SeekBar.w; - if(Amount > 0 && Amount < 1.0f && PrevAmount != Amount) + if(Amount > 0.0f && Amount < 1.0f && absolute(PrevAmount-Amount) >= 0.01f) { PrevAmount = Amount; m_pClient->OnReset(); |