Author Topic: [fixed] r3454: Pulling a drawbox across the minimap moves camera  (Read 1176 times)

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
There is, unfortunately, a bug in the newly added feature where you can push and hold down the mouse button while pointing at the minimap, then move the mouse pointer across the minimap to move the camera aroudn swiftly.

The problem is that this swift camera movement also comes into effect when you are pulling a unit selection box / drawbox across the screen and your mouse pointer touches the minimap. At this point the camera will also move, which is unexpected and probably not intended. I guess the fix would be to only allow this way of moving the camera if the mouse button has been pressed while the pointer was within the mini map area and it was not released since. I.e. it is not sufficient to just check whether the mouse button is being hed down while the pointer is in the minimap area, but it also must have been pushed while being in the mini map area. Alternatively you could test whether a draw box is being drawn, and if so, not allow the camera to be moved by means of the mini map.
« Last Edit: 15 July 2012, 12:26:42 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: r3454: Pulling a drawbox across the minimap moves camera
« Reply #1 on: 15 July 2012, 10:01:36 »
should be fixed in SVN, please try.
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
I confirm it's fixed, while the related functionality still works as expected. Thank you.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

D.U.P.A.

  • Guest
I guess it was just checking if button is pressed, regardless if it was pressed when cursor on minimap or main map :P