Skip to content

Commit

Permalink
Fixed random rotation in Wrecks Gallery on first click when car is zo…
Browse files Browse the repository at this point in the history
…omed.
  • Loading branch information
b-kurczynski committed Dec 12, 2024
1 parent 884f134 commit 2ceb3b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DETHRACE/common/racesumm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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_y = 0; // Fixes warning caused by -Wsometimes-uninitialized
#endif
GetMousePosition(&old_mouse_y, &old_mouse_y);
GetMousePosition(&old_mouse_x, &old_mouse_y);
if (gWreck_zoomed_in < 0) {
if (CastSelectionRay(pCurrent_choice, pCurrent_mode)) {
gUser_interacted = 1;
Expand Down

0 comments on commit 2ceb3b0

Please sign in to comment.