diff options
| author | Yohann Ferreira <bertram@cegetel.net> | 2006-01-08 22:52:59 +0000 |
|---|---|---|
| committer | Yohann Ferreira <bertram@cegetel.net> | 2006-01-08 22:52:59 +0000 |
| commit | f7db7a051da79d8deef8b79419ce6772dce16725 (patch) | |
| tree | 27ff5c5f33ea73d4e52e32ebbc583fa92ba50c87 /src/netcomputer.cpp | |
| parent | ac150f3543caf86fd071c73f53373b4ea243fa24 (diff) | |
| download | manaserv-f7db7a051da79d8deef8b79419ce6772dce16725.tar.gz manaserv-f7db7a051da79d8deef8b79419ce6772dce16725.tar.xz manaserv-f7db7a051da79d8deef8b79419ce6772dce16725.zip | |
Added customization of created character. (That makes previously created db invalid.) Made list of map indexed by map id, instead of map name. This will prevent unsyncing of player's current map when changing a map name. Remember you have now to add a map filename into db before being able to load it. (Default map id is 1, not ZERO, as zero is the not found return value.
Diffstat (limited to 'src/netcomputer.cpp')
| -rw-r--r-- | src/netcomputer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netcomputer.cpp b/src/netcomputer.cpp index 2bf04db..40685b5 100644 --- a/src/netcomputer.cpp +++ b/src/netcomputer.cpp @@ -64,7 +64,7 @@ void NetComputer::setCharacter(tmwserv::BeingPtr ch) state.removeBeing(characterPtr); } characterPtr = ch; - state.addBeing(characterPtr, characterPtr->getMap()); + state.addBeing(characterPtr, characterPtr->getMapId()); } void NetComputer::unsetAccount() |
