summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-03-13 21:23:33 +0200
committerAndrei Karas <akaras@inbox.ru>2011-03-13 21:59:10 +0200
commitbf32ca896ccf51385eb67812088ba5861ca2ede2 (patch)
tree02cc6a7f8de3ef48b6092668368f3b5ba8f35683 /src/localplayer.cpp
parent774e86e8d2f8d787fb3b3a865cd500f166153c96 (diff)
downloadplus-bf32ca896ccf51385eb67812088ba5861ca2ede2.tar.gz
plus-bf32ca896ccf51385eb67812088ba5861ca2ede2.tar.bz2
plus-bf32ca896ccf51385eb67812088ba5861ca2ede2.tar.xz
plus-bf32ca896ccf51385eb67812088ba5861ca2ede2.zip
Add ability to remap maps to different files.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 3bd075f45..4cb944439 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -1712,7 +1712,7 @@ void LocalPlayer::moveToHome()
else
{
std::map<std::string, Vector>::iterator iter =
- mHomes.find(mMap->getProperty("_filename"));
+ mHomes.find(mMap->getProperty("_realfilename"));
if (iter != mHomes.end())
{
@@ -2882,7 +2882,7 @@ void LocalPlayer::setHome()
if (!specialLayer)
return;
- std::string key = mMap->getProperty("_filename");
+ std::string key = mMap->getProperty("_realfilename");
Vector pos = mHomes[key];
if (mAction == SIT)
@@ -3651,7 +3651,7 @@ void LocalPlayer::updateNavigateList()
if (mMap)
{
std::map<std::string, Vector>::iterator iter =
- mHomes.find(mMap->getProperty("_filename"));
+ mHomes.find(mMap->getProperty("_realfilename"));
if (iter != mHomes.end())
{