Set script globals TurnTimeLeft and ReadyTimeLeft immediately after they were changed by Lua call
authorWuzzy <Wuzzy2@mail.ru>
Sat, 29 Sep 2018 14:52:13 +0200
changeset 13835 0beff00d223a
parent 13834 e3fee73c51a0
child 13836 8d1c54c684a8
Set script globals TurnTimeLeft and ReadyTimeLeft immediately after they were changed by Lua call
hedgewars/uScript.pas
--- 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;