diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-10-23 18:21:49 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-10-23 18:21:49 +0000 |
commit | 42e1d3fd8849d608dc1e4136b0acc99b8649f083 (patch) | |
tree | 4981e0c2a37334d0d794edff259011143d1b91ec /src/char_sql/char.c | |
parent | 05e7279f4ea2579a3d67b5339fa834e107a967c5 (diff) | |
download | hercules-42e1d3fd8849d608dc1e4136b0acc99b8649f083.tar.gz hercules-42e1d3fd8849d608dc1e4136b0acc99b8649f083.tar.bz2 hercules-42e1d3fd8849d608dc1e4136b0acc99b8649f083.tar.xz hercules-42e1d3fd8849d608dc1e4136b0acc99b8649f083.zip |
- char_family now returns the char_id of the children when previously it would return true.
- Expanded the family check to work as it should, exp-share-range is respected, and the child is not considered for it (thanks to TheUltraMage for the investigation)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9049 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql/char.c')
-rw-r--r-- | src/char_sql/char.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c index dd5b31770..3edc30c9c 100644 --- a/src/char_sql/char.c +++ b/src/char_sql/char.c @@ -4384,7 +4384,7 @@ int char_family(int pl1,int pl2,int pl3) { (pl3 == partnerid && pl2 == childid)
) {
mysql_free_result (sql_res);
- return 1;
+ return childid;
}
}
if(charid == pl2) {
@@ -4392,7 +4392,7 @@ int char_family(int pl1,int pl2,int pl3) { (pl3 == partnerid && pl1 == childid)
) {
mysql_free_result (sql_res);
- return 1;
+ return childid;
}
}
if(charid == pl3) {
@@ -4400,7 +4400,7 @@ int char_family(int pl1,int pl2,int pl3) { (pl2 == partnerid && pl1 == childid)
) {
mysql_free_result (sql_res);
- return 1;
+ return childid;
}
}
}
|