From 247aa7452c78043010f2ab16c6c344b7ca5aa9c9 Mon Sep 17 00:00:00 2001 From: Paul Merrill Date: Fri, 5 Dec 2014 08:39:23 -0800 Subject: [PATCH] c++11: tile.cpp --- src/tile.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/tile.cpp b/src/tile.cpp index 06d9a64..e98d19d 100644 --- a/src/tile.cpp +++ b/src/tile.cpp @@ -26,10 +26,8 @@ #include // for exit(1) on fatal -#include -#include - #include "area.h" +#include "formatter.h" #include "log.h" #include "python.h" #include "python-bindings-template.cpp" @@ -307,12 +305,10 @@ void TileSet::set(int idx, TileType* type) TileType* TileSet::get(int x, int y) { - using namespace boost; - size_t i = idx(x, y); if (i > types.size()) { - Log::err("TileSet", str(format("get(%d, %d): out of bounds") - % x % y)); + Log::err("TileSet", + Formatter("get(%, %): out of bounds") % x % y); return NULL; } return types[i]; -- 2.11.4.GIT