diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-09-07 07:31:58 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-09-07 07:31:58 +0000 |
commit | bbedfd67468dc5105169fc114a54d30ae1a36f23 (patch) | |
tree | 7dd6639299a0a4ec315b2e40db2c0a59989fb415 /src/map/party.c | |
parent | b713afa8b0b482ff4a4f13cef138b430dee1767b (diff) | |
download | hercules-bbedfd67468dc5105169fc114a54d30ae1a36f23.tar.gz hercules-bbedfd67468dc5105169fc114a54d30ae1a36f23.tar.bz2 hercules-bbedfd67468dc5105169fc114a54d30ae1a36f23.tar.xz hercules-bbedfd67468dc5105169fc114a54d30ae1a36f23.zip |
- Added support for the new party invite/reply packets from the latest client version.
- Cleared up some TODO's
- Added auto-rejecting party/guild invites when the target is disconnected from the server.
- Added a correction in the walking code to abort it when map_moveblock cancels the player's walking (by warping/knocking back),the default code would fail because unit_stopwalking would do nothing since the walk timer was already -1 in that moment.
- Corrected mob_randomwalk to use unsigned int for the tick variable.
- Changed the default @Main format to prevent crashes in the newer clients.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11134 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/party.c')
-rw-r--r-- | src/map/party.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/party.c b/src/map/party.c index eeb3d5b9a..6ae42a9f1 100644 --- a/src/map/party.c +++ b/src/map/party.c @@ -268,6 +268,11 @@ int party_invite(struct map_session_data *sd,struct map_session_data *tsd) return 0; } } + if (!tsd->fd) { //You can't invite someone who has already disconnected. + clif_party_inviteack(sd,tsd->status.name,1); + return 0; + } + if( tsd->status.party_id>0 || tsd->party_invite>0 ){ clif_party_inviteack(sd,tsd->status.name,0); return 0; |