summaryrefslogtreecommitdiff
path: root/src/char_sql
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-08 00:39:47 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-08 00:39:47 +0000
commit929ac35fb4e18b5c71ad267d692a5c7da28cd7fa (patch)
tree2ff55570cb13d34d99a5f6b8831e5127658fd6cf /src/char_sql
parent2db0477702089adf6d858bdc872d9e82dc222332 (diff)
downloadhercules-929ac35fb4e18b5c71ad267d692a5c7da28cd7fa.tar.gz
hercules-929ac35fb4e18b5c71ad267d692a5c7da28cd7fa.tar.bz2
hercules-929ac35fb4e18b5c71ad267d692a5c7da28cd7fa.tar.xz
hercules-929ac35fb4e18b5c71ad267d692a5c7da28cd7fa.zip
- Fixed Char-SQL server setting up the save/last point to the novice grounds when either x, y or the map is 0.
- Commented the char server setting up Prontera as default point when there's none (this bug should not exist) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5218 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql')
-rw-r--r--src/char_sql/char.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index 9029ba773..b8c467fb3 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -955,13 +955,13 @@ int mmo_char_fromsql(int char_id, struct mmo_charstatus *p){
strcat (t_msg, " status2");
} else
ShowError("Char load failed (%d - table %s)\n", char_id, char_db); //Error?! ERRRRRR WHAT THAT SAY!?
-
+/* We shouldn't need this at all! [Skotlex]
if (p->last_point.x == 0 || p->last_point.y == 0 || p->last_point.map == 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)
memcpy(&p->save_point, &start_point, sizeof(start_point));
-
+*/
//read memo data
//`memo` (`memo_id`,`char_id`,`map`,`x`,`y`)
sprintf(tmp_sql, "SELECT `map`,`x`,`y` FROM `%s` WHERE `char_id`='%d' ORDER by `memo_id`",memo_db, char_id); // TBR