# HG changeset patch # User nemo # Date 1508868840 14400 # Node ID 327f71313e04f483685c6da3449907ed8051be49 # Parent 0e425574bd5f4543a649eed169bcde51c2bf703c this should probably sidestep that thing unc0rr keeps bringing up. untested. but then, I've never had it happen. I think what happens is onGameTick20 is called in same tick as onNewTurn and before it... diff -r 0e425574bd5f -r 327f71313e04 share/hedgewars/Data/Maps/ClimbHome/map.lua --- a/share/hedgewars/Data/Maps/ClimbHome/map.lua Tue Oct 24 19:45:11 2017 +0200 +++ b/share/hedgewars/Data/Maps/ClimbHome/map.lua Tue Oct 24 14:14:00 2017 -0400 @@ -250,6 +250,11 @@ function onGameTick20() local x,y + + if gameTime - startTime < 40 then + return + end + if math.random(20) == 1 then AddVisualGear(2012,56,vgtSmoke,0,false) end if CurrentHedgehog == dummyHog and dummySkip ~= 0 and dummySkip < GameTime then ParseCommand("/skip")