]> git.itanic.dy.fi Git - sdl-planets/commit
main loop: Fade correctly when simulation runs fast
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Mon, 5 Apr 2010 16:33:53 +0000 (19:33 +0300)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Mon, 5 Apr 2010 16:33:53 +0000 (19:33 +0300)
commit867e82eabd81328347f33468488eaa13a356e819
tree5ca71321bfd09e93f5604ed35741ec2f3df63c2b
parente7fc1b2b309da09c05a377e633e8a2455fbc840d
main loop: Fade correctly when simulation runs fast

There was a bug that buffer fade amount was relative to the time it
took to run one simulation step, not relatively to the time interval
between two drawn frame. This patch fixes the issue.

Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
main.c