From 7b6b389fe156b8ff1fc1f35ee776a2e65f160921 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 19 May 2014 18:29:03 +0300 Subject: Move mapitemtype into separate file. --- src/resources/mapreader.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/resources/mapreader.cpp') diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp index 6a15555d9..cc8b14a30 100644 --- a/src/resources/mapreader.cpp +++ b/src/resources/mapreader.cpp @@ -36,6 +36,7 @@ #include "resources/animation.h" #include "resources/beingcommon.h" #include "resources/image.h" +#include "resources/mapitemtype.h" #include "resources/resourcemanager.h" #include "resources/db/mapdb.h" @@ -422,17 +423,17 @@ Map *MapReader::readMap(XmlNodePtrConst node, const std::string &path) map->addParticleEffect(warpPath, objX, objY, objW, objH); } - map->addPortal(objName, MapItem::PORTAL, + map->addPortal(objName, MapItemType::PORTAL, objX, objY, objW, objH); } else if (objType == "SPAWN") { -// map->addPortal(_("Spawn: ") + objName, MapItem::PORTAL, +// map->addPortal(_("Spawn: ") + objName, MapItemType::PORTAL, // objX, objY, objW, objH); } else if (objType == "MUSIC") { - map->addRange(objName, MapItem::MUSIC, + map->addRange(objName, MapItemType::MUSIC, objX, objY, objW, objH); } else -- cgit v1.2.3-70-g09d2