diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-05-23 09:33:24 +0200 |
---|---|---|
committer | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-06-01 23:34:23 +0200 |
commit | 03df6173b91200102ef21a6d67ceaf55340f6a92 (patch) | |
tree | e82e510837d59054ade805739ec6f799d462d54e /src/map/clif.c | |
parent | 079cc44b4251ebc695c052dc3b1053f31d4d69fa (diff) | |
download | hercules-03df6173b91200102ef21a6d67ceaf55340f6a92.tar.gz hercules-03df6173b91200102ef21a6d67ceaf55340f6a92.tar.bz2 hercules-03df6173b91200102ef21a6d67ceaf55340f6a92.tar.xz hercules-03df6173b91200102ef21a6d67ceaf55340f6a92.zip |
Show instancing window on login for character instances, too
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 649df3e33..eeb56ce0b 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -11067,6 +11067,19 @@ static void clif_parse_LoadEndAck(int fd, struct map_session_data *sd) #if PACKETVER >= 20090218 quest->questinfo_refresh(sd); // NPC quest/event icon check. [Kisuka] #endif + + if (first_time) { + int i; + + ARR_FIND(0, instance->instances, i, instance->list[i].owner_type == IOT_CHAR && instance->list[i].owner_id == sd->status.account_id); + + if (i < instance->instances) { + sd->instances = 1; + CREATE(sd->instance, short, 1); + sd->instance[0] = instance->list[i].id; + clif->instance_join(sd->fd, instance->list[i].id); + } + } } /// Server's tick (ZC_NOTIFY_TIME). |