Codechange: fmt (and std::format) do explicitly not support enums out-of-the-box
That it works for the version we have packaged it pure coincidence, as that is one of the few versions that due to a bug allow it. So add the appropriate template specialisations to support it out-of-the-box within OpenTTD.
This commit is contained in:
@@ -117,7 +117,7 @@ public:
|
||||
#else
|
||||
# define LANDINFOD_LEVEL 1
|
||||
#endif
|
||||
Debug(misc, LANDINFOD_LEVEL, "TILE: 0x{:x} ({},{})", tile, TileX(tile), TileY(tile));
|
||||
Debug(misc, LANDINFOD_LEVEL, "TILE: 0x{:x} ({},{})", (TileIndex)tile, TileX(tile), TileY(tile));
|
||||
Debug(misc, LANDINFOD_LEVEL, "type = 0x{:x}", tile.type());
|
||||
Debug(misc, LANDINFOD_LEVEL, "height = 0x{:x}", tile.height());
|
||||
Debug(misc, LANDINFOD_LEVEL, "m1 = 0x{:x}", tile.m1());
|
||||
|
Reference in New Issue
Block a user