mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-26 13:44:16 +01:00
Codechange: replace INVALID_X with XID::Invalid() for PoolIDs
This commit is contained in:
@@ -436,7 +436,7 @@ struct MainWindow : Window
|
||||
bool in = wheel < 0;
|
||||
|
||||
/* When following, only change zoom - otherwise zoom to the cursor. */
|
||||
if (this->viewport->follow_vehicle != INVALID_VEHICLE) {
|
||||
if (this->viewport->follow_vehicle != VehicleID::Invalid()) {
|
||||
DoZoomInOutWindow(in ? ZOOM_IN : ZOOM_OUT, this);
|
||||
} else {
|
||||
ZoomInOrOutToCursorWindow(in, this);
|
||||
|
||||
Reference in New Issue
Block a user