Fix cursor often jumping to center when putting target while moving cursor
authorWuzzy <almikes@aol.com>
Thu, 05 Oct 2017 02:02:28 +0200
changeset 12655 eaf719616c7b
parent 12654 2837dee472cc
child 12656 5e115ed19e27
Fix cursor often jumping to center when putting target while moving cursor It was about this time this HORRIBLY ANNOYING bug got fixed. Oh boy!
ChangeLog.txt
hedgewars/uIO.pas
--- a/ChangeLog.txt	Thu Oct 05 01:37:49 2017 +0200
+++ b/ChangeLog.txt	Thu Oct 05 02:02:28 2017 +0200
@@ -29,6 +29,7 @@
  + Small visual effects enhancements
  + Briefly show theme and music authors in chat at start of game
  + A few new funny ticker messages (English)
+ * Fixed cursor often jumping back to screen center when putting target location while moving cursor
  * Fixed air-strikes drops being off-center
  * Gameplay fix: Hammer damage is now rounded down. This means it will cause NO DAMAGE to a hedgehog with less than 3 hp.
  * Fixed screenshots being too bright if taken in quick succession
--- a/hedgewars/uIO.pas	Thu Oct 05 01:37:49 2017 +0200
+++ b/hedgewars/uIO.pas	Thu Oct 05 02:02:28 2017 +0200
@@ -477,7 +477,8 @@
     CurrentHedgehog^ do
     if (State and gstChooseTarget) <> 0 then
         begin
-        isCursorVisible:= false;
+        if CurAmmoType = amBee then
+            isCursorVisible:= false;
         if not CurrentTeam^.ExtDriven then
             begin
             if fromAI then