No need to update the ship if we reset.
This commit is contained in:
parent
609d197227
commit
17777e2178
@ -113,12 +113,9 @@ int main() {
|
||||
{
|
||||
if(key_is_down(KEY_RESET))
|
||||
ship_init(&ship, WINDOW_WIDTH / 2, WINDOW_HEIGHT / 2);
|
||||
/*
|
||||
* We only run the simulation when the timer goes off so it's
|
||||
* running at a consistent rate, rather than dependent on random
|
||||
* events.
|
||||
*/
|
||||
else
|
||||
ship_update(&ship);
|
||||
|
||||
al_clear_to_color(al_map_rgb(0, 0, 0));
|
||||
ship_draw(&ship);
|
||||
if(show_info)
|
||||
|
Loading…
Reference in New Issue
Block a user