diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-09-20 13:48:51 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-09-20 13:48:51 +0000 |
commit | ee7973243ce46493377a8554e7b8bd105ed7b917 (patch) | |
tree | 424fd41d3c14b13ccb66d3d9a69e178fcd1ccce9 /src/map/party.c | |
parent | d0bc9bb36227c2414e908cdfd61cc77d06fe6629 (diff) | |
download | hercules-ee7973243ce46493377a8554e7b8bd105ed7b917.tar.gz hercules-ee7973243ce46493377a8554e7b8bd105ed7b917.tar.bz2 hercules-ee7973243ce46493377a8554e7b8bd105ed7b917.tar.xz hercules-ee7973243ce46493377a8554e7b8bd105ed7b917.zip |
- Fixed party_sub_count (TK_POWER) failing when the idle_no_share setting was disabled.
- Enabled Star Gladiators and Soul Linkers to do /doridori
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8824 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/party.c')
-rw-r--r-- | src/map/party.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/map/party.c b/src/map/party.c index 10ab78e5b..ad7274f67 100644 --- a/src/map/party.c +++ b/src/map/party.c @@ -823,10 +823,14 @@ int party_send_dot_remove(struct map_session_data *sd) // party_foreachsamemap(party_sub_count, sd, 0, &c);
int party_sub_count(struct block_list *bl, va_list ap)
{
- if(!(((TBL_PC *)bl)->state.autotrade) && (((TBL_PC *)bl)->idletime < (last_tick - battle_config.idle_no_share)))
- return 1;
- else
+ if(((TBL_PC *)bl)->state.autotrade)
+ return 0;
+
+ if(battle_config.idle_no_share &&
+ ((TBL_PC *)bl)->idletime >= (last_tick - battle_config.idle_no_share))
return 0;
+
+ return 1;
}
int party_foreachsamemap(int (*func)(struct block_list*,va_list),struct map_session_data *sd,int range,...)
|