From 9ac9a0d7ea6c845ccde66f3232557e60ad23a315 Mon Sep 17 00:00:00 2001 From: amber Date: Tue, 21 Dec 2004 01:56:45 +0000 Subject: lastpoint fix git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@692 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog.txt | 1 + src/char_sql/char.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/Changelog.txt b/Changelog.txt index ff01304cd..46de14d7a 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -1,6 +1,7 @@ Date Added 12/20 + * If last_pos.x or .y == 0, set to start point [MouseJstr] * Fixed map loading. If a map was not found, it would remove the next map in the list [Ajarn] * Moddified some *_athena.conf's (my typos and some inncorect default values) [Ajarn] * Added Valaris' double connection bug fix (imalive watchdog) [Valaris] diff --git a/src/char_sql/char.c b/src/char_sql/char.c index a1318bcc1..6b14b9192 100644 --- a/src/char_sql/char.c +++ b/src/char_sql/char.c @@ -954,6 +954,12 @@ int mmo_char_fromsql(int char_id, struct mmo_charstatus *p, int online){ } else printf("char2 - failed\n"); //Error?! ERRRRRR WHAT THAT SAY!? + if (p->last_point.x == 0 || p->last_point.y == 0 || p->last_point.map[0] == '\0') + memcpy(&p->last_point, &start_point, sizeof(start_point)); + + if (p->save_point.x == 0 || p->save_point.y == 0 || p->save_point.map[0] == '\0') + memcpy(&p->save_point, &start_point, sizeof(start_point)); + printf("char2 "); //read memo data -- cgit v1.2.3-70-g09d2