From d353af7218a4f5da929736c41347bf8c88a9e55c Mon Sep 17 00:00:00 2001 From: gumi Date: Sun, 11 Mar 2018 22:34:12 -0400 Subject: don't send base_level if player is a bot --- src/map/clif.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 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 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 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); -- cgit v1.2.3-60-g2f50