summaryrefslogtreecommitdiff
path: root/src/map/party.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-21 18:43:50 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-21 18:43:50 +0000
commit8ef45ce58519b6e9eaad12b49110346c0a371242 (patch)
treef247ab1b5a2e309a7da18914848d2537e0d1242b /src/map/party.c
parent0988a4623402706dced4808b565702135d7e963f (diff)
downloadhercules-8ef45ce58519b6e9eaad12b49110346c0a371242.tar.gz
hercules-8ef45ce58519b6e9eaad12b49110346c0a371242.tar.bz2
hercules-8ef45ce58519b6e9eaad12b49110346c0a371242.tar.xz
hercules-8ef45ce58519b6e9eaad12b49110346c0a371242.zip
- Modified party_send_movemap and guild_send_info_short to send the mini-dots to the player logging on.
- Added functions clif_party/guild_xy_single to send the xy dots to a single fd. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5359 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/party.c')
-rw-r--r--src/map/party.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/map/party.c b/src/map/party.c
index 31d4f0479..65486dcea 100644
--- a/src/map/party.c
+++ b/src/map/party.c
@@ -470,6 +470,7 @@ int party_recv_movemap(int party_id,int account_id,int char_id, unsigned short m
// パーティメンバの移動
int party_send_movemap(struct map_session_data *sd)
{
+ int i;
struct party *p;
nullpo_retr(0, sd);
@@ -478,6 +479,19 @@ int party_send_movemap(struct map_session_data *sd)
return 0;
intif_party_changemap(sd,1);
+
+ p=party_search(sd->status.party_id);
+ if (p && sd->fd) {
+ //Send dots of other party members to this char. [Skotlex]
+ for(i=0; i < MAX_PARTY; i++) {
+ if (!p->member[i].sd || p->member[i].sd == sd ||
+ p->member[i].sd->bl.m != sd->bl.m)
+ continue;
+ clif_party_xy_single(sd->fd, p->member[i].sd);
+ }
+
+ }
+
if( sd->state.party_sent ) // もうパーティデータは送信済み
return 0;
@@ -485,7 +499,7 @@ int party_send_movemap(struct map_session_data *sd)
party_check_conflict(sd);
// あるならパーティ情報送信
- if( (p=party_search(sd->status.party_id))!=NULL ){
+ if(p){
party_check_member(p); // 所属を確認する
if(sd->status.party_id==p->party_id){
clif_party_main_info(p,sd->fd);