diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-07 15:40:55 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-07 15:40:55 +0000 |
commit | 4862df1325bab71999a31fbbae196df361cea929 (patch) | |
tree | 21b8b2e0b16fea9a293626d60c573f48c793497d /src/map/unit.c | |
parent | 65b551f2194c3c78d33bd4fe77b3732bae23e301 (diff) | |
download | hercules-4862df1325bab71999a31fbbae196df361cea929.tar.gz hercules-4862df1325bab71999a31fbbae196df361cea929.tar.bz2 hercules-4862df1325bab71999a31fbbae196df361cea929.tar.xz hercules-4862df1325bab71999a31fbbae196df361cea929.zip |
- Fixed pc_setpos ignoring the clrtype sent to it.
- unit_free will now use clear type 3 for players (warping out effect)
- You can't invite someone to a guild now within Guild Castles.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5945 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index dd2ee0505..e928178cd 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -1476,8 +1476,8 @@ int unit_free(struct block_list *bl) { nullpo_retr(0, ud);
map_freeblock_lock();
- if( bl->prev )
- unit_remove_map(bl, 0);
+ if( bl->prev ) //Players are supposed to logout with a "warp" effect.
+ unit_remove_map(bl, bl->type==BL_PC?3:0);
if( bl->type == BL_PC ) {
struct map_session_data *sd = (struct map_session_data*)bl;
|