From 8b0d94a35c472e19cfd68c5ac7ec1dd5932201d4 Mon Sep 17 00:00:00 2001 From: mekolat Date: Fri, 29 Jan 2016 20:07:39 -0500 Subject: allow to not allocate stats on CC do not use sex provided by client for scripts send the correct sex to the client --- src/map/clif.cpp | 6 +++--- src/map/pc.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/map') diff --git a/src/map/clif.cpp b/src/map/clif.cpp index 64e9939..9743e49 100644 --- a/src/map/clif.cpp +++ b/src/map/clif.cpp @@ -659,7 +659,7 @@ void clif_set0078_main_1d8(dumb_ptr sd, Buffer& buf) fixed_1d8.manner = sd->status.manner; fixed_1d8.opt3 = sd->opt3; fixed_1d8.karma = sd->status.karma; - fixed_1d8.sex = sd->sex; + fixed_1d8.sex = sd->status.sex; fixed_1d8.pos.x = sd->bl_x; fixed_1d8.pos.y = sd->bl_y; fixed_1d8.pos.dir = sd->dir; @@ -713,7 +713,7 @@ void clif_set0078_alt_1d9(dumb_ptr sd, Buffer& buf) fixed_1d8.manner = sd->status.manner; fixed_1d8.opt3 = sd->opt3; fixed_1d8.karma = sd->status.karma; - fixed_1d8.sex = sd->sex; + fixed_1d8.sex = sd->status.sex; fixed_1d8.pos.x = sd->bl_x; fixed_1d8.pos.y = sd->bl_y; fixed_1d8.pos.dir = sd->dir; @@ -766,7 +766,7 @@ void clif_set007b(dumb_ptr sd, Buffer& buf) fixed_1da.manner = sd->status.manner; fixed_1da.opt3 = sd->opt3; fixed_1da.karma = sd->status.karma; - fixed_1da.sex = sd->sex; + fixed_1da.sex = sd->status.sex; fixed_1da.pos2.x0 = sd->bl_x; fixed_1da.pos2.y0 = sd->bl_y; fixed_1da.pos2.x1 = sd->to_x; diff --git a/src/map/pc.cpp b/src/map/pc.cpp index 8a5127d..59fbba6 100644 --- a/src/map/pc.cpp +++ b/src/map/pc.cpp @@ -3361,7 +3361,7 @@ int pc_readparam(dumb_ptr sd, SP type) val = unwrap(sd->status.species); break; case SP::SEX: - val = static_cast(sd->sex); + val = static_cast(sd->status.sex); break; case SP::WEIGHT: val = sd->weight; -- cgit v1.2.3-60-g2f50