From 13639a09b75e48e5f5c98c3b4fdc6fee6289fc3b Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Thu, 30 Dec 2021 20:46:36 +1100 Subject: [PATCH] - SW: Remove unused `PLAYERstruct` variable `turn180_target` that was deprecated with 7bf1cacc7f9fe71f24f965f9ac8d63a54ebba832. --- source/games/sw/src/game.h | 1 - source/games/sw/src/player.cpp | 1 - source/games/sw/src/save.cpp | 1 - wadsrc/static/zscript/games/sw/swgame.zs | 1 - 4 files changed, 4 deletions(-) diff --git a/source/games/sw/src/game.h b/source/games/sw/src/game.h index a86617b03..c93f2ee82 100644 --- a/source/games/sw/src/game.h +++ b/source/games/sw/src/game.h @@ -651,7 +651,6 @@ struct PLAYERstruct void setcursector(sectortype* s) { cursector = s; } bool insector() const { return cursector != nullptr; } - fixed_t turn180_target; // 180 degree turn // variables that do not fit into sprite structure int hvel,tilt,tilt_dest; diff --git a/source/games/sw/src/player.cpp b/source/games/sw/src/player.cpp index 11bb1a3f8..cf6582efa 100644 --- a/source/games/sw/src/player.cpp +++ b/source/games/sw/src/player.cpp @@ -7101,7 +7101,6 @@ DEFINE_FIELD_X(SWPlayer, PLAYERstruct, circle_camera_ang) DEFINE_FIELD_X(SWPlayer, PLAYERstruct, camera_check_time_delay) DEFINE_FIELD_X(SWPlayer, PLAYERstruct, cursector) DEFINE_FIELD_X(SWPlayer, PLAYERstruct, lastcursector) -DEFINE_FIELD_X(SWPlayer, PLAYERstruct, turn180_target) DEFINE_FIELD_X(SWPlayer, PLAYERstruct, hvel) DEFINE_FIELD_X(SWPlayer, PLAYERstruct, tilt) DEFINE_FIELD_X(SWPlayer, PLAYERstruct, tilt_dest) diff --git a/source/games/sw/src/save.cpp b/source/games/sw/src/save.cpp index a183a65b8..1da09a97b 100644 --- a/source/games/sw/src/save.cpp +++ b/source/games/sw/src/save.cpp @@ -478,7 +478,6 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, PLAYERstruct& w, P ("camera_check_time_delay", w.camera_check_time_delay) ("cursectnum", w.cursector) ("lastcursectnum", w.lastcursector) - ("turn180_target", w.turn180_target) ("hvel", w.hvel) ("tilt", w.tilt) ("tilt_dest", w.tilt_dest) diff --git a/wadsrc/static/zscript/games/sw/swgame.zs b/wadsrc/static/zscript/games/sw/swgame.zs index cf5caaeea..b4b8a84f0 100644 --- a/wadsrc/static/zscript/games/sw/swgame.zs +++ b/wadsrc/static/zscript/games/sw/swgame.zs @@ -210,7 +210,6 @@ struct SWPlayer native native int16 camera_check_time_delay; //native int /*cursectnum,*/lastcursectnum; - native int turn180_target; // 180 degree turn // variables that do not fit into sprite structure native int hvel,tilt,tilt_dest;