From f035da7a0533a01d6203a010a43e86c38d6867b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Fri, 31 Jul 2020 10:37:31 +0200 Subject: [PATCH] Fix indent --- main.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/main.c b/main.c index 8a194e6..41179bd 100755 --- a/main.c +++ b/main.c @@ -2521,19 +2521,18 @@ void SFG_updateLevel() if (state == SFG_MONSTER_STATE_DYING) { + if (SFG_MR_TYPE(*monster) == SFG_LEVEL_ELEMENT_MONSTER_ENDER) + { + SFG_currentLevel.bossCount--; - if (SFG_MR_TYPE(*monster) == SFG_LEVEL_ELEMENT_MONSTER_ENDER) - { - SFG_currentLevel.bossCount--; + // last boss killed gives player a key card - // last boss killed gives player a key card - - if (SFG_currentLevel.bossCount == 0) - { - SFG_LOG("boss killed, giving player a card"); - SFG_player.cards |= 0x04; - } - } + if (SFG_currentLevel.bossCount == 0) + { + SFG_LOG("boss killed, giving player a card"); + SFG_player.cards |= 0x04; + } + } // remove dead