X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FArea.cpp;h=2c7f1b8b7987d50fc477b7b8f5c3af501899344b;hb=a3ba4dc677ad7c92eeb78b20b642241563605c9d;hp=a64dab2a928ea1b479860ee1f1220ff7623bcf76;hpb=ef2496b3cb7ce66b7f831278be66261834b732e5;p=l2e.git diff --git a/src/map/Area.cpp b/src/map/Area.cpp index a64dab2..2c7f1b8 100644 --- a/src/map/Area.cpp +++ b/src/map/Area.cpp @@ -8,7 +8,7 @@ #include -using geometry::Vector; +using math::Vector; using loader::FieldDescription; using loader::Interpreter; using loader::TypeDescription; @@ -24,7 +24,7 @@ Area::Area() } -Tile *Area::TileAt(const geometry::Vector &offset) { +Tile *Area::TileAt(const math::Vector &offset) { int tileIndex(offset.Y() * width + offset.X()); if (tileIndex < numTiles) { return tiles +tileIndex; @@ -33,7 +33,7 @@ Tile *Area::TileAt(const geometry::Vector &offset) { } } -const Tile *Area::TileAt(const geometry::Vector &offset) const { +const Tile *Area::TileAt(const math::Vector &offset) const { int tileIndex(offset.Y() * width + offset.X()); if (tileIndex < numTiles) { return tiles +tileIndex;