TheAssemblyArmada / Vanilla-Conquer

Vanilla Conquer provides clean, cross-platform builds of the C&C Remastered Collection and the standalone legacy games.
Other
351 stars 53 forks source link

Game thinks you are doing select drag too quickly when clicking mouse and moving it a bit when giving order #415

Open mvdhout1992 opened 3 years ago

mvdhout1992 commented 3 years ago

Game thinks you are doing select drag to quickly when clicking mouse and moving it a bit when giving order

As reported by `Beasty.

This might be related to SDL. I think the game has some tolerance code so you can press the left mouse button and move the mouse a few pixels without it immediately thinking you are doing drag select.

mvdhout1992 commented 3 years ago

The checks for a difference of 4 pixels Y and X before doing the rubberband for select drag, code is here:

https://github.com/TheAssemblyArmada/Vanilla-Conquer/blob/vanilla/redalert/display.cpp#L4154