Backed out changeset 6a928999fefd (onPreciseLocal causes desyncs)
authorWuzzy <Wuzzy2@mail.ru>
Sat, 18 May 2019 16:55:27 +0200
changeset 15008 d84136589c04
parent 15007 3ed1cbd31754
child 15009 2bf7b1ba12fe
Backed out changeset 6a928999fefd (onPreciseLocal causes desyncs)
ChangeLog.txt
hedgewars/uInputHandler.pas
--- a/ChangeLog.txt	Sat May 18 16:54:51 2019 +0200
+++ b/ChangeLog.txt	Sat May 18 16:55:27 2019 +0200
@@ -135,7 +135,6 @@
  + New callback: onGameResult(winningClan): Called when the game ends normally. winningClan = index of winning clan or -1 on draw
  + New callback: onCaseDrop(gear): Called at the point where a crate MIGHT be dropped between turns. Gear is the crate gear or nil
  + New callback: ooHogSwitch(oldHog): Called when hogs was switched with the “switch hedgehog” utility
- + New callback: onPreciseLocal(): Called when precise key is pressed client-side
  + SendStat extension: Option to use predefined modes with siPointType, like "!POINTS" or "!TIME"
  + SimpleMission: Add isMissionTeam attribute for teams
  + SpeedShoppa/TargetPractice libraries: Remove custom hog and team info settings
--- a/hedgewars/uInputHandler.pas	Sat May 18 16:54:51 2019 +0200
+++ b/hedgewars/uInputHandler.pas	Sat May 18 16:55:27 2019 +0200
@@ -60,7 +60,7 @@
 procedure ControllerButtonEvent(joy, button: Byte; pressed: Boolean);
 
 implementation
-uses uKeyNames, uConsole, uCommands, uVariables, uConsts, uUtils, uDebug, uPhysFSLayer, uCursor, uScript;
+uses uKeyNames, uConsole, uCommands, uVariables, uConsts, uUtils, uDebug, uPhysFSLayer, uCursor;
 
 const
     LSHIFT = $0200;
@@ -251,7 +251,6 @@
             updateVolumeDelta(true);
             updateCursorMovementDelta(true, CursorMovementX, CursorMovementX);
             updateCursorMovementDelta(true, CursorMovementY, CursorMovementY);
-            ScriptCall('onPreciseLocal');
             end;
 
         ParseCommand(CurrentBinds.binds[CurrentBinds.indices[code]], Trusted);