Fixed random rotation in Wrecks Gallery on first click when car is zoomed. (#427)
This commit is contained in:
parent
884f134664
commit
1f009a2490
|
@ -1045,7 +1045,7 @@ int ClickDamage(int* pCurrent_choice, int* pCurrent_mode, int pX_offset, int pY_
|
||||||
old_mouse_x = 0; // Fixes warning caused by -Wsometimes-uninitialized
|
old_mouse_x = 0; // Fixes warning caused by -Wsometimes-uninitialized
|
||||||
old_mouse_y = 0; // Fixes warning caused by -Wsometimes-uninitialized
|
old_mouse_y = 0; // Fixes warning caused by -Wsometimes-uninitialized
|
||||||
#endif
|
#endif
|
||||||
GetMousePosition(&old_mouse_y, &old_mouse_y);
|
GetMousePosition(&old_mouse_x, &old_mouse_y);
|
||||||
if (gWreck_zoomed_in < 0) {
|
if (gWreck_zoomed_in < 0) {
|
||||||
if (CastSelectionRay(pCurrent_choice, pCurrent_mode)) {
|
if (CastSelectionRay(pCurrent_choice, pCurrent_mode)) {
|
||||||
gUser_interacted = 1;
|
gUser_interacted = 1;
|
||||||
|
|
Loading…
Reference in New Issue