# HG changeset patch # User Wuzzy # Date 1535831772 -7200 # Node ID c6154fcb9420f97edb0e6f605d16f73e3f1cb94e # Parent ae22928f2b01552ce763847082c1011d23d0fca9 ASA, desert01: Fix display error when destroying device crate diff -r ae22928f2b01 -r c6154fcb9420 ChangeLog.txt --- a/ChangeLog.txt Sat Sep 01 21:47:08 2018 +0200 +++ b/ChangeLog.txt Sat Sep 01 21:56:12 2018 +0200 @@ -82,6 +82,8 @@ * A Classic Fairytale: Fix clan membership of princess in some missions * A Classic Fairytale, Mission 5: Tribe was not in same clan as Natives, screwing up stats a bit + A Space Adventure, final mission: Terrain types are easier to distinguish + * A Space Adventure, Searching in the Dust: Fix display error when destroying device crate + * A Space Adventure, Searching in the Dust: Don't take away control right above the pit near Sandy * A Space Adeventure: Fix clan membership of PAotH in main Death Planet mission * The Great Escape: Infinite attack mode did not work * Shotgun/Sniper Rifle Target Practicse: Suppress “X remaining” message diff -r ae22928f2b01 -r c6154fcb9420 share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert01.lua --- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert01.lua Sat Sep 01 21:47:08 2018 +0200 +++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert01.lua Sat Sep 01 21:56:12 2018 +0200 @@ -270,11 +270,13 @@ -- Turn the other crate into a fake crate; this will “contain” the device. SetGearPos(other_crate_table.gear, bor(GetGearPos(other_crate_table.gear), 0x8)) elseif cratesFound == 1 then - -- Second win crate collected: - -- This crate contains the anti-gravity part! VICTORY! - PlaySound(sndShotgunReload) - -- It's displayed as if collecting a normal ammo/utility crate. :-) - AddCaption(loc("Anti-Gravity Device Part (+1)"), GetClanColor(GetHogClan(CurrentHedgehog)), capgrpAmmoinfo) + if not candidate_crate_table.destroyed then + -- Second win crate collected: + -- This crate contains the anti-gravity part! VICTORY! + PlaySound(sndShotgunReload) + -- It's displayed as if collecting a normal ammo/utility crate. :-) + AddCaption(loc("Anti-Gravity Device Part (+1)"), GetClanColor(GetHogClan(CurrentHedgehog)), capgrpAmmoinfo) + end end end