diff --git a/src/game/boe.town.cpp b/src/game/boe.town.cpp index 7f46d89a..4c799cfe 100644 --- a/src/game/boe.town.cpp +++ b/src/game/boe.town.cpp @@ -2,6 +2,7 @@ #include #include +#include #include "boe.global.hpp" @@ -84,7 +85,7 @@ void start_town_mode(short which_town, short entry_dir, bool debug_enter) { if(town_number < 0 || town_number >= univ.scenario.towns.size()) { showError("The scenario tried to put you into a town that doesn't exist.", - "Requested town: " + std::to_string(town_number) + "|Max town: " + std::to_string(univ.scenario.towns.size())); + fmt::format("Requested town: {}|Max town: {}", town_number, univ.scenario.towns.size())); return; } @@ -106,7 +107,7 @@ void start_town_mode(short which_town, short entry_dir, bool debug_enter) { if(town_number < 0 || town_number >= univ.scenario.towns.size()) { showError("The scenario tried to put you into a town that doesn't exist.", - "Requested town: " + std::to_string(former_town) + "|Adjusted town: " + std::to_string(town_number) + "|Max town: " + std::to_string(univ.scenario.towns.size())); + fmt::format("Requested town: {}|Adjusted town: {}|Max town: {}", former_town, town_number, univ.scenario.towns.size())); return; } @@ -1640,4 +1641,4 @@ void move_thing(ePushableThing type, location from_loc, location to_loc) { && univ.town.items[i].contained && univ.town.items[i].held) univ.town.items[i].item_loc = to_loc; } -} \ No newline at end of file +}