From bbfc300ce2b74a360143b12bd79e7e9911580019 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Sun, 14 Jul 2013 18:10:56 +0200 Subject: [PATCH] spawn when greater or equal spawnline --- spriteview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spriteview.c b/spriteview.c index d0bd94d..9faf795 100644 --- a/spriteview.c +++ b/spriteview.c @@ -374,7 +374,7 @@ static void handle_spawns(unsigned scrollstep) { if(!spawn_map[map_spawn_screen_index].spawns) goto done; for(i = 0; i < scrollstep; i++) { while(map_spawn_current < spawn_map[map_spawn_screen_index].num_spawns && - map_spawn_line+i == spawn_map[map_spawn_screen_index].spawns[map_spawn_current].scroll_line) { + map_spawn_line+i >= spawn_map[map_spawn_screen_index].spawns[map_spawn_current].scroll_line) { init_enemy(&spawn_map[map_spawn_screen_index].spawns[map_spawn_current]); map_spawn_current++; } -- 2.11.4.GIT