summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-05-23 09:32:05 +0200
committerKenpachi Developer <Kenpachi.Developer@gmx.de>2020-06-01 23:34:23 +0200
commit079cc44b4251ebc695c052dc3b1053f31d4d69fa (patch)
tree00edcd977e1a41c465e7b16878d515920654909c /src/map
parentffa957a81e3190a7e58f6e40b7113bd5be02d256 (diff)
downloadhercules-079cc44b4251ebc695c052dc3b1053f31d4d69fa.tar.gz
hercules-079cc44b4251ebc695c052dc3b1053f31d4d69fa.tar.bz2
hercules-079cc44b4251ebc695c052dc3b1053f31d4d69fa.tar.xz
hercules-079cc44b4251ebc695c052dc3b1053f31d4d69fa.zip
Show instancing window on login for guild instances, too
Diffstat (limited to 'src/map')
-rw-r--r--src/map/guild.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/map/guild.c b/src/map/guild.c
index 90f870f1c..a78ea169c 100644
--- a/src/map/guild.c
+++ b/src/map/guild.c
@@ -887,6 +887,12 @@ static void guild_member_joined(struct map_session_data *sd)
channel->join(g->channel, sd, "", true);
}
+ for (int j = 0; j < g->instances; j++) {
+ if (g->instance[j] >= 0) {
+ clif->instance_join(sd->fd, g->instance[j]);
+ break;
+ }
+ }
}
}
@@ -940,6 +946,13 @@ static int guild_member_added(int guild_id, int account_id, int char_id, int fla
channel->join(g->channel, sd, "", true);
}
+ for (int i = 0; i < g->instances; i++) {
+ if (g->instance[i] >= 0) {
+ clif->instance_join(sd->fd, g->instance[i]);
+ break;
+ }
+ }
+
return 0;
}