Codechange: Store the rail type of rail engines as a RailTypes bitmask.

This commit is contained in:
Michael Lutz
2025-06-13 21:01:31 +02:00
committed by dP
parent fdc36e65fd
commit b16ba117cc
28 changed files with 185 additions and 88 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ class ReplaceVehicleWindow : public Window {
if (draw_left && this->sel_railtype != INVALID_RAILTYPE) {
/* Ensure that the railtype is specific to the selected one */
if (rvi->railtype != this->sel_railtype) return false;
if (!rvi->railtypes.Test(this->sel_railtype)) return false;
}
return true;
}