# HG changeset patch # User Wuzzy # Date 1558357166 -7200 # Node ID f877fbeaee6ce0695d94f3f40af3e476285e8f39 # Parent 333154e90c5ba44fa5396fc1a7e913f280151189 Speed Shoppa: Set hog dy=0 on victory diff -r 333154e90c5b -r f877fbeaee6c share/hedgewars/Data/Scripts/SpeedShoppa.lua --- a/share/hedgewars/Data/Scripts/SpeedShoppa.lua Mon May 20 01:24:25 2019 +0200 +++ b/share/hedgewars/Data/Scripts/SpeedShoppa.lua Mon May 20 14:59:26 2019 +0200 @@ -159,8 +159,8 @@ SaveMissionVar("Won", "true") PlaySound(sndVictory, playerHog) SetEffect(playerHog, heInvulnerable, 1) - SetState(playerHog, bor(GetState(playerHog), gstWinner)) - SetState(playerHog, band(GetState(playerHog), bnot(gstHHDriven))) + local dx, dy = GetGearVelocity(playerHog) + SetGearVelocity(playerHog, 0, dy) AddCaption(loc("Challenge completed!")) SendStat(siGameResult, loc("Challenge completed!")) SendStat(siPointType, "!TIME")