Codechange: Remove RailTypeByte type

This commit is contained in:
Charles Pigott
2019-04-22 07:39:52 +01:00
committed by PeterN
parent 10ba431d21
commit 931d32f414
8 changed files with 10 additions and 10 deletions

View File

@@ -1277,7 +1277,8 @@ bool LoadOldVehicle(LoadgameState *ls, int num)
};
if (v->spritenum / 2 >= lengthof(spriteset_rail)) return false;
v->spritenum = spriteset_rail[v->spritenum / 2]; // adjust railway sprite set offset
Train::From(v)->railtype = type == 0x25 ? 1 : 0; // monorail / rail
/* Should be the original values for monorail / rail, can't use RailType constants */
Train::From(v)->railtype = static_cast<RailType>(type == 0x25 ? 1 : 0);
break;
}