Fix incorrect check for cake gear type in ClimbHome
authorWuzzy <Wuzzy2@mail.ru>
Wed, 08 Nov 2017 21:56:43 +0100
changeset 12827 b7453ae2c44d
parent 12826 42003e235a46
child 12828 948eae885eac
Fix incorrect check for cake gear type in ClimbHome
share/hedgewars/Data/Maps/ClimbHome/map.lua
--- a/share/hedgewars/Data/Maps/ClimbHome/map.lua	Wed Nov 08 15:07:46 2017 -0500
+++ b/share/hedgewars/Data/Maps/ClimbHome/map.lua	Wed Nov 08 21:56:43 2017 +0100
@@ -112,7 +112,7 @@
     if gear == MrMine then
         AddCaption(loc("Once you set off the proximity trigger, Mr. Mine is not your friend"), 0xFFFFFFFF, capgrpMessage)
         MrMine = nil
-    elseif GetGearType(gear) == Cake then
+    elseif GetGearType(gear) == gtCake then
         Cake = nil
     elseif GetGearType(gear) == gtHedgehog then
 	onGameTick20()