From fca91b78c76fcc8542c8b004bc60163f6976e29e Mon Sep 17 00:00:00 2001 From: Kp Date: Fri, 19 Aug 2016 03:41:41 +0000 Subject: [PATCH] Remove useless casts in similar/main/multi.cpp --- similar/main/multi.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/similar/main/multi.cpp b/similar/main/multi.cpp index a41352fa5..8fdd2bfb7 100644 --- a/similar/main/multi.cpp +++ b/similar/main/multi.cpp @@ -2175,9 +2175,9 @@ static void multi_do_controlcen_fire(const ubyte *buf) memcpy(&to_target, buf+count, 12); count += 12; if (words_bigendian)// swap the vector to_target { - to_target.x = INTEL_INT(static_cast(to_target.x)); - to_target.y = INTEL_INT(static_cast(to_target.y)); - to_target.z = INTEL_INT(static_cast(to_target.z)); + to_target.x = INTEL_INT(to_target.x); + to_target.y = INTEL_INT(to_target.y); + to_target.z = INTEL_INT(to_target.z); } gun_num = buf[count]; count += 1; objnum = GET_INTEL_SHORT(buf + count); count += 2; @@ -2203,9 +2203,9 @@ static void multi_do_create_powerup(const playernum_t pnum, const ubyte *buf) memcpy(&new_pos, buf+count, sizeof(vms_vector)); count+=sizeof(vms_vector); if (words_bigendian) { - new_pos.x = SWAPINT(static_cast(new_pos.x)); - new_pos.y = SWAPINT(static_cast(new_pos.y)); - new_pos.z = SWAPINT(static_cast(new_pos.z)); + new_pos.x = SWAPINT(new_pos.x); + new_pos.y = SWAPINT(new_pos.y); + new_pos.z = SWAPINT(new_pos.z); } Net_create_loc = 0;