]> git.itanic.dy.fi Git - sdl-planets/commit
main.c: Skip simulation when time step is zero
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Sun, 13 Jun 2010 13:04:57 +0000 (16:04 +0300)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Sun, 13 Jun 2010 13:04:57 +0000 (16:04 +0300)
commite2416f679c877cedcf63b0da86b9d0c572ec33c1
tree14e119fdd5acbfe94c96d06fd5594b3c3db89293
parent2295e56851607fe4e23c5b5101adc20e68e29b0c
main.c: Skip simulation when time step is zero

When user has set the simulation speed to zero, there is no need to
run the simulation at all, as it won't be changing anyway. This makes
it possible to run excessively large simulations and occassionally
freeze the simulation. Then, for example, inspecting the tree topology
(if draw_lines variable is enabled) becomes easier without need to
worry about slow camera movement.

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