mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Use API identical to std classes where possible
This commit is contained in:
@ -219,7 +219,7 @@ const CMapGenOptions& RmgMap::getMapGenOptions() const
|
||||
void RmgMap::assertOnMap(const int3& tile) const
|
||||
{
|
||||
if (!mapInstance->isInTheMap(tile))
|
||||
throw rmgException(boost::to_string(boost::format("Tile %s is outside the map") % tile.toString()));
|
||||
throw rmgException(boost::str(boost::format("Tile %s is outside the map") % tile.toString()));
|
||||
}
|
||||
|
||||
RmgMap::Zones & RmgMap::getZones()
|
||||
@ -354,7 +354,7 @@ bool RmgMap::isAllowedSpell(const SpellID & sid) const
|
||||
void RmgMap::dump(bool zoneId) const
|
||||
{
|
||||
static int id = 0;
|
||||
std::ofstream out(boost::to_string(boost::format("zone_%d.txt") % id++));
|
||||
std::ofstream out(boost::str(boost::format("zone_%d.txt") % id++));
|
||||
int levels = mapInstance->levels();
|
||||
int width = mapInstance->width;
|
||||
int height = mapInstance->height;
|
||||
|
Reference in New Issue
Block a user