From: Timo Kokkonen Date: Sun, 18 Apr 2010 10:26:31 +0000 (+0300) Subject: poll_events: Add support for stopping the simulation X-Git-Url: http://git.itanic.dy.fi/?p=sdl-planets;a=commitdiff_plain;h=a7625d370d9667fcdab89feeb2198ba6ab58ff0c poll_events: Add support for stopping the simulation This makes it possible to for example inspect the tree structure in a stopped simulation. Signed-off-by: Timo Kokkonen --- diff --git a/main.c b/main.c index 8be3330..f2a012c 100644 --- a/main.c +++ b/main.c @@ -123,6 +123,9 @@ static int poll_events(struct sim_status *status, double time) case SDLK_4: status->time_scale = 30; break; + case SDLK_0: + status->time_scale = 0; + break; case SDLK_t: status->tracers_enabled = !status->tracers_enabled;