# HG changeset patch # User Wuzzy # Date 1441933668 -7200 # Node ID 45316b6eb4a0eaffaf9b1d7dbd1f889d0081aa81 # Parent 722567479fab6618af951a4125d645136eb93dff Fix broken HedgeEditor map preview diff -r 722567479fab -r 45316b6eb4a0 share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua --- a/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua Fri Sep 04 08:14:12 2015 -0400 +++ b/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua Fri Sep 11 03:07:48 2015 +0200 @@ -279,6 +279,9 @@ -- HEDGE EDITOR, SCRIPT BEGINS (Hey yo, it's about time) --------------------------------------------------------- +-- Tell other scripts that we exist +HedgeEditor = true + HedgewarsScriptLoad("/Scripts/Locale.lua") HedgewarsScriptLoad("/Scripts/Tracker.lua") HedgewarsScriptLoad("/Scripts/Params.lua") diff -r 722567479fab -r 45316b6eb4a0 share/hedgewars/Data/Scripts/TechMaps.lua --- a/share/hedgewars/Data/Scripts/TechMaps.lua Fri Sep 04 08:14:12 2015 -0400 +++ b/share/hedgewars/Data/Scripts/TechMaps.lua Fri Sep 11 03:07:48 2015 +0200 @@ -88,6 +88,9 @@ end function onPreviewInit() + if HedgeEditor == true then + return + end if mapID == nil then mapID = 2 + GetRandom(7)