From f7c1cfb4e497a4b00a7c8dfc3bca17a722ab4b35 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 13 Aug 2017 19:14:16 +0200 Subject: [PATCH] Fixed a bug with crashes in peaceful shmup --- shmup.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/shmup.cpp b/shmup.cpp index 4033dec6..e9e7fc98 100644 --- a/shmup.cpp +++ b/shmup.cpp @@ -1397,11 +1397,12 @@ hyperpoint hornpos(int id) { #define IGO 9 -double igospan[IGO] = { 0, +double igospan[IGO+1] = { 0, M_PI/6, -M_PI/6, M_PI/4, -M_PI/4, M_PI/3, -M_PI/3, - M_PI/2.1, -M_PI/2.1 + M_PI/2.1, -M_PI/2.1, + 0 }; bool swordKills(eMonster m) {