summaryrefslogtreecommitdiff
path: root/src/emap/clif.c
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2019-08-17 21:34:34 -0400
committergumi <git@gumi.ca>2020-04-25 14:55:36 -0400
commitdb2fa04439ded43b55ca2e7fdc3509ac2041c9fd (patch)
tree7e3eb6233b25ecdf861c87ecd0ad14e328105c22 /src/emap/clif.c
parent9e88b3b422781630a18c13e40cda1c5ea7c111e8 (diff)
downloadplugin-db2fa04439ded43b55ca2e7fdc3509ac2041c9fd.tar.gz
plugin-db2fa04439ded43b55ca2e7fdc3509ac2041c9fd.tar.bz2
plugin-db2fa04439ded43b55ca2e7fdc3509ac2041c9fd.tar.xz
plugin-db2fa04439ded43b55ca2e7fdc3509ac2041c9fd.zip
add full support for non-binary gender
Diffstat (limited to 'src/emap/clif.c')
-rw-r--r--src/emap/clif.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/emap/clif.c b/src/emap/clif.c
index 9bdb6b8..25cbd31 100644
--- a/src/emap/clif.c
+++ b/src/emap/clif.c
@@ -17,6 +17,7 @@
#include "common/random.h"
#include "common/timer.h"
#include "map/battle.h"
+#include "map/chrif.h"
#include "map/elemental.h"
#include "map/homunculus.h"
#include "map/guild.h"
@@ -1541,3 +1542,20 @@ void eclif_rodex_icon_pre(int *fdPtr,
return;
}
}
+
+void eclif_force_charselect(struct map_session_data *sd)
+{
+ int fd = sd->fd;
+
+ /* Rovert's Prevent logout option - Fixed [Valaris] */
+ if (!sd->sc.data[SC_CLOAKING] && !sd->sc.data[SC_HIDING] && !sd->sc.data[SC_CHASEWALK]
+ && !sd->sc.data[SC_CLOAKINGEXCEED] && !sd->sc.data[SC__INVISIBILITY] && !sd->sc.data[SC_SUHIDE]
+ && (!battle->bc->prevent_logout || DIFF_TICK(timer->gettick(), sd->canlog_tick) > battle->bc->prevent_logout)
+ ) {
+ //Send to char-server for character selection.
+ chrif->charselectreq(sd, sockt->session[fd]->client_addr);
+ } else {
+ // GM-kick the player
+ clif->GM_kick(NULL, sd);
+ }
+}