summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2018-03-11 22:34:12 -0400
committergumi <git@gumi.ca>2018-03-11 22:34:12 -0400
commitd353af7218a4f5da929736c41347bf8c88a9e55c (patch)
tree55641dd26ac51ce8aa06a824ac4fe5b87f59af1d /src/map
parent17ef6e228c7704e532d5b222d8560d287ee202e2 (diff)
downloadtmwa-d353af7218a4f5da929736c41347bf8c88a9e55c.tar.gz
tmwa-d353af7218a4f5da929736c41347bf8c88a9e55c.tar.bz2
tmwa-d353af7218a4f5da929736c41347bf8c88a9e55c.tar.xz
tmwa-d353af7218a4f5da929736c41347bf8c88a9e55c.zip
don't send base_level if player is a bot
Diffstat (limited to 'src/map')
-rw-r--r--src/map/clif.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/clif.cpp b/src/map/clif.cpp
index 2208291..fa5f3a5 100644
--- a/src/map/clif.cpp
+++ b/src/map/clif.cpp
@@ -681,7 +681,7 @@ void clif_set0078_main_1d8(dumb_ptr<map_session_data> sd, Buffer& buf, bool old_
fixed_1d8.pos.dir = sd->dir;
fixed_1d8.gm_bits = old_client ? (pc_isGM(sd).get_all_bits() == 60 || pc_isGM(sd).get_all_bits() >= 99 ? 0x80 : 0) : pc_isGM(sd).get_public_word();
fixed_1d8.dead_sit = sd->state.dead_sit;
- fixed_1d8.base_level = sd->status.base_level;
+ fixed_1d8.base_level = pc_isGM(sd).get_all_bits() == 1 ? 0 : sd->status.base_level;
fixed_1d8.unused = 0;
buf = create_fpacket<0x01d8, 54>(fixed_1d8);
@@ -736,7 +736,7 @@ void clif_set0078_alt_1d9(dumb_ptr<map_session_data> sd, Buffer& buf, bool old_c
fixed_1d8.pos.dir = sd->dir;
fixed_1d8.gm_bits = old_client ? (pc_isGM(sd).get_all_bits() == 60 || pc_isGM(sd).get_all_bits() >= 99 ? 0x80 : 0) : pc_isGM(sd).get_public_word();
fixed_1d8.dead_sit = sd->state.dead_sit;
- fixed_1d8.base_level = sd->status.base_level;
+ fixed_1d8.base_level = pc_isGM(sd).get_all_bits() == 1 ? 0 : sd->status.base_level;
buf = create_fpacket<0x01d9, 53>(fixed_1d8);
}
@@ -793,7 +793,7 @@ void clif_set007b(dumb_ptr<map_session_data> sd, Buffer& buf, bool old_client)
fixed_1da.pos2.y1 = sd->to_y;
fixed_1da.gm_bits = old_client ? (pc_isGM(sd).get_all_bits() == 60 || pc_isGM(sd).get_all_bits() >= 99 ? 0x80 : 0) : pc_isGM(sd).get_public_word();
fixed_1da.five = 5;
- fixed_1da.base_level = sd->status.base_level;
+ fixed_1da.base_level = pc_isGM(sd).get_all_bits() == 1 ? 0 : sd->status.base_level;
fixed_1da.unused = 0;
buf = create_fpacket<0x01da, 60>(fixed_1da);