summaryrefslogtreecommitdiff
path: root/src/char/char.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-26 00:12:05 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-06 16:22:40 +0300
commit0147ed8a48a7f01d0619dec3eb2813b879f1dee7 (patch)
treeaf90f12ec9e9c64070fb8eae9d5b2fc35ed2912a /src/char/char.c
parent867ca32885a67fa69a00a3814ba33208274e81ba (diff)
downloadhercules-0147ed8a48a7f01d0619dec3eb2813b879f1dee7.tar.gz
hercules-0147ed8a48a7f01d0619dec3eb2813b879f1dee7.tar.bz2
hercules-0147ed8a48a7f01d0619dec3eb2813b879f1dee7.tar.xz
hercules-0147ed8a48a7f01d0619dec3eb2813b879f1dee7.zip
into mapindex add variable with default map and position.
Diffstat (limited to 'src/char/char.c')
-rw-r--r--src/char/char.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/char/char.c b/src/char/char.c
index d3b18cfa6..fec953a7a 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -1216,15 +1216,15 @@ int char_mmo_char_fromsql(int char_id, struct mmo_charstatus* p, bool load_every
p->save_point.map = mapindex->name2id(save_map);
if( p->last_point.map == 0 ) {
- p->last_point.map = (unsigned short)strdb_iget(mapindex->db, MAP_DEFAULT);
- p->last_point.x = MAP_DEFAULT_X;
- p->last_point.y = MAP_DEFAULT_Y;
+ p->last_point.map = (unsigned short)strdb_iget(mapindex->db, mapindex->default_map);
+ p->last_point.x = mapindex->default_x;
+ p->last_point.y = mapindex->default_y;
}
if( p->save_point.map == 0 ) {
- p->save_point.map = (unsigned short)strdb_iget(mapindex->db, MAP_DEFAULT);
- p->save_point.x = MAP_DEFAULT_X;
- p->save_point.y = MAP_DEFAULT_Y;
+ p->save_point.map = (unsigned short)strdb_iget(mapindex->db, mapindex->default_map);
+ p->save_point.x = mapindex->default_x;
+ p->save_point.y = mapindex->default_y;
}
strcat(t_msg, " status");