summaryrefslogtreecommitdiff
path: root/src/dalstorage.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2006-01-12 14:50:39 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2006-01-12 14:50:39 +0000
commit50f46449cc04e085b3fbbc821f9108be5e23f715 (patch)
treee16bb5eee3302647e7ad8d5ca360ae866a7586c8 /src/dalstorage.cpp
parent58871d54f8ecaf9bde0689edb58561f40ed0f683 (diff)
downloadmanaserv-50f46449cc04e085b3fbbc821f9108be5e23f715.tar.gz
manaserv-50f46449cc04e085b3fbbc821f9108be5e23f715.tar.bz2
manaserv-50f46449cc04e085b3fbbc821f9108be5e23f715.tar.xz
manaserv-50f46449cc04e085b3fbbc821f9108be5e23f715.zip
Fixed default map definition for a new created character, enabled loading of map when a character is on it, fixed inconsistency in getter/setter for map id.
Diffstat (limited to 'src/dalstorage.cpp')
-rw-r--r--src/dalstorage.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dalstorage.cpp b/src/dalstorage.cpp
index fc168925..539d5ac1 100644
--- a/src/dalstorage.cpp
+++ b/src/dalstorage.cpp
@@ -269,13 +269,13 @@ DALStorage::getAccount(const std::string& userName)
ssMapId >> mapId;
if ( mapId > 0 )
{
- being.get()->setMap(mapId);
+ being->setMap(mapId);
}
else
{
// Set player to default map and one of the default location
// Default map is to be 1, as not found return value will be 0.
- being.get()->setMap(DEFAULT_MAP_ID);
+ being->setMap(DEFAULT_MAP_ID);
}
mCharacters.push_back(being);
@@ -653,7 +653,7 @@ DALStorage::_addAccount(const AccountPtr& account)
<< (*it)->getMoney() << ", "
<< (*it)->getX() << ", "
<< (*it)->getY() << ", "
- << (int)(*it)->getMapId() << ", "
+ << (int)(*it)->getMap() << ", "
<< stats.strength << ", "
<< stats.agility << ", "
<< stats.vitality << ", "
@@ -750,7 +750,7 @@ DALStorage::_updAccount(const AccountPtr& account)
<< (*it)->getMoney() << ", "
<< (*it)->getX() << ", "
<< (*it)->getY() << ", "
- << (*it)->getMapId() << ", "
+ << (*it)->getMap() << ", "
<< stats.strength << ", "
<< stats.agility << ", "
<< stats.vitality << ", "
@@ -768,7 +768,7 @@ DALStorage::_updAccount(const AccountPtr& account)
<< " money = " << (*it)->getMoney() << ", "
<< " x = " << (*it)->getX() << ", "
<< " y = " << (*it)->getY() << ", "
- << " map_id = " << (*it)->getMapId() << ", "
+ << " map_id = " << (*it)->getMap() << ", "
<< " str = " << stats.strength << ", "
<< " agi = " << stats.agility << ", "
<< " vit = " << stats.vitality << ", "