Set script globals TurnTimeLeft and ReadyTimeLeft immediately after they were changed by Lua call
--- a/hedgewars/uScript.pas Sat Sep 29 01:17:15 2018 +0200
+++ b/hedgewars/uScript.pas Sat Sep 29 14:52:13 2018 +0200
@@ -3752,11 +3752,13 @@
if isPendingTurnTimeLeft then
begin
TurnTimeLeft:= PendingTurnTimeLeft;
+ ScriptSetInteger('TurnTimeLeft', TurnTimeLeft);
isPendingTurnTimeLeft:= false;
end;
if isPendingReadyTimeLeft then
begin
ReadyTimeLeft:= PendingReadyTimeLeft;
+ ScriptSetInteger('ReadyTimeLeft', ReadyTimeLeft);
isPendingReadyTimeLeft:= false;
end;
end;