forked from mirror/OpenTTD
(svn r7000) -Fix: Incorrect use of e->we.click when the event is a 'place'. This didn't cause any
bugs so far because the 'click' element was at the same position in the union for both events.
This commit is contained in:
@@ -1351,7 +1351,7 @@ static void ScenEditLandGenWndProc(Window *w, WindowEvent *e)
|
||||
break;
|
||||
|
||||
case WE_PLACE_MOUSEUP:
|
||||
if (e->we.click.pt.x != -1) {
|
||||
if (e->we.place.pt.x != -1) {
|
||||
if ((e->we.place.userdata & 0xF) == VPM_X_AND_Y) // dragged actions
|
||||
GUIPlaceProcDragXY(e);
|
||||
}
|
||||
|
Reference in New Issue
Block a user