diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2017-07-25 18:15:52 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2017-07-25 18:15:52 +0000 |
| commit | 768ba675b06d9e794a1827ea2e376fe2670c5323 (patch) | |
| tree | 2d3f4e9bf46603eed0ebc88b46a98965c36f4afb /src/drivers/WinAPI | |
| parent | 7aea5b50a018ba22b785f29f3183f85736e24400 (diff) | |
Fix test/blocks "runaway timer" bug.
Bug #1: When entering the next level an _additional_ timeout was started,
hence multiple timers would run in parallel and increase the game's speed
more than (supposedly) intended.
Bug #2: When the game was over, these additional timers were not stopped,
hence level 1 was never again as slow as it should be.
This is fixed in this commit. Additionally the timer values are defined
as preprocessor macros (constants) for easier fine tuning. To compensate
for the lower speed in higher levels the LEVEL_FACTOR was reduced from
0.95 to 0.90 so the higher levels are slightly faster than without this
fix.
Note: the result of this fix (generally less speed increase per level)
may result in higher scores.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12353 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/WinAPI')
0 files changed, 0 insertions, 0 deletions
