From fdda8bfcd51741554efb27b2eca25bea63675595 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=B4me=20Chilliet?= Date: Fri, 16 Dec 2016 23:37:07 +0100 Subject: [PATCH] Merged identical switch cases in Tutorial --- Source/Tutorial.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/Source/Tutorial.cpp b/Source/Tutorial.cpp index 006da97..cdb5599 100644 --- a/Source/Tutorial.cpp +++ b/Source/Tutorial.cpp @@ -152,6 +152,7 @@ void Tutorial::Do(float multiplier) maxtime = 13; break; case 32: + case 42: maxtime = 8; break; case 33: @@ -210,9 +211,6 @@ void Tutorial::Do(float multiplier) case 43: maxtime = 300; break; - case 42: - maxtime = 8; - break; case 44: weapons[0].owner = 1; Person::players[0]->weaponactive = -1; @@ -461,6 +459,9 @@ void Tutorial::Do(float multiplier) break; case 33: case 34: + case 44: + case 45: + case 46: if (Animation::animations[Person::players[0]->animTarget].attack == reversal) { success = 1; } @@ -488,13 +489,6 @@ void Tutorial::Do(float multiplier) success = 1; } break; - case 44: - case 45: - case 46: - if (Animation::animations[Person::players[0]->animTarget].attack == reversal) { - success = 1; - } - break; case 49: if (Person::players[1]->weaponstuck != -1) { success = 1; -- 2.39.5