diff options
author | Ira Rice <irarice@gmail.com> | 2009-03-25 11:55:32 -0600 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-03-25 11:55:32 -0600 |
commit | 79b6dfb373e3a7165ff2dfa5563d73560b15212d (patch) | |
tree | 3d3692cbdfaf6307edf60506704bf8a011dea055 /src | |
parent | e0be7afc936c39e2b0e1db84a13653cfd78a6035 (diff) | |
download | mana-client-79b6dfb373e3a7165ff2dfa5563d73560b15212d.tar.gz mana-client-79b6dfb373e3a7165ff2dfa5563d73560b15212d.tar.bz2 mana-client-79b6dfb373e3a7165ff2dfa5563d73560b15212d.tar.xz mana-client-79b6dfb373e3a7165ff2dfa5563d73560b15212d.zip |
Relaxed collision and fringe naming slightly so that they just need to
start with collision or fringe, instead of being required to be the
same case throughout the beginning of the layer name.
Also made a default name for popup menus so that their skins can also be
changed by users.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/popupmenu.cpp | 2 | ||||
-rw-r--r-- | src/resources/mapreader.cpp | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp index fd2a0361..13adf827 100644 --- a/src/gui/popupmenu.cpp +++ b/src/gui/popupmenu.cpp @@ -48,7 +48,7 @@ extern std::string tradePartnerName; PopupMenu::PopupMenu(): - Window(), + Window("PopupMenu"), mBeingId(0), mFloorItem(NULL), mItem(NULL) diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp index 901a2561..e40acd77 100644 --- a/src/resources/mapreader.cpp +++ b/src/resources/mapreader.cpp @@ -322,10 +322,11 @@ void MapReader::readLayer(xmlNodePtr node, Map *map) const int h = XML::getProperty(node, "height", map->getHeight()); const int offsetX = XML::getProperty(node, "x", 0); const int offsetY = XML::getProperty(node, "y", 0); - const std::string name = XML::getProperty(node, "name", ""); + std::string name = XML::getProperty(node, "name", ""); + name = toLower(name); - const bool isFringeLayer = (name.substr(0,6) == "Fringe"); - const bool isCollisionLayer = (name.substr(0,9) == "Collision"); + const bool isFringeLayer = (name.substr(0,6) == "fringe"); + const bool isCollisionLayer = (name.substr(0,9) == "collision"); MapLayer *layer = 0; |