Kill last of MF2_TWOD -- toggletwod, line action 432

This commit is contained in:
James R 2022-09-29 03:16:11 -07:00
parent 7ab84ebd2f
commit e30232e103
7 changed files with 3 additions and 27 deletions

View file

@ -1094,7 +1094,6 @@ void D_RegisterClientCommands(void)
COM_AddCommand("rteleport", Command_RTeleport_f); COM_AddCommand("rteleport", Command_RTeleport_f);
COM_AddCommand("skynum", Command_Skynum_f); COM_AddCommand("skynum", Command_Skynum_f);
COM_AddCommand("weather", Command_Weather_f); COM_AddCommand("weather", Command_Weather_f);
COM_AddCommand("toggletwod", Command_Toggletwod_f);
#ifdef _DEBUG #ifdef _DEBUG
COM_AddCommand("causecfail", Command_CauseCfail_f); COM_AddCommand("causecfail", Command_CauseCfail_f);
#endif #endif

View file

@ -5649,7 +5649,7 @@ const char *const MOBJFLAG_LIST[] = {
// \tMF2_(\S+).*// (.+) --> \t"\1", // \2 // \tMF2_(\S+).*// (.+) --> \t"\1", // \2
const char *const MOBJFLAG2_LIST[] = { const char *const MOBJFLAG2_LIST[] = {
"AXIS", // It's a NiGHTS axis! (For faster checking) "AXIS", // It's a NiGHTS axis! (For faster checking)
"TWOD", // Moves like it's in a 2D level "\x01", // free: 1<<1 (name un-matchable)
"DONTRESPAWN", // Don't respawn this object! "DONTRESPAWN", // Don't respawn this object!
"\x01", // free: 1<<3 (name un-matchable) "\x01", // free: 1<<3 (name un-matchable)
"AUTOMATIC", // Thrown ring has automatic properties "AUTOMATIC", // Thrown ring has automatic properties

View file

@ -651,18 +651,6 @@ void Command_Weather_f(void)
P_SwitchWeather(atoi(COM_Argv(1))); P_SwitchWeather(atoi(COM_Argv(1)));
} }
void Command_Toggletwod_f(void)
{
player_t *p = &players[consoleplayer];
REQUIRE_CHEATS;
REQUIRE_INLEVEL;
REQUIRE_SINGLEPLAYER; // TODO: make multiplayer compatible
if (p->mo)
p->mo->flags2 ^= MF2_TWOD;
}
#ifdef _DEBUG #ifdef _DEBUG
// You never thought you needed this, did you? >=D // You never thought you needed this, did you? >=D
// Yes, this has the specific purpose of completely screwing you up // Yes, this has the specific purpose of completely screwing you up

View file

@ -56,7 +56,6 @@ void Command_Teleport_f(void);
void Command_RTeleport_f(void); void Command_RTeleport_f(void);
void Command_Skynum_f(void); void Command_Skynum_f(void);
void Command_Weather_f(void); void Command_Weather_f(void);
void Command_Toggletwod_f(void);
#ifdef _DEBUG #ifdef _DEBUG
void Command_CauseCfail_f(void); void Command_CauseCfail_f(void);
#endif #endif

View file

@ -169,7 +169,7 @@ typedef enum
typedef enum typedef enum
{ {
MF2_AXIS = 1, // It's a NiGHTS axis! (For faster checking) MF2_AXIS = 1, // It's a NiGHTS axis! (For faster checking)
MF2_TWOD = 1<<1, // Moves like it's in a 2D level // free: 1<<1
MF2_DONTRESPAWN = 1<<2, // Don't respawn this object! MF2_DONTRESPAWN = 1<<2, // Don't respawn this object!
// free: 1<<3 // free: 1<<3
MF2_AUTOMATIC = 1<<4, // Thrown ring has automatic properties MF2_AUTOMATIC = 1<<4, // Thrown ring has automatic properties

View file

@ -2836,16 +2836,6 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
EV_DoCrush(line, crushBothOnce); EV_DoCrush(line, crushBothOnce);
break; break;
case 432: // Enable 2D Mode (Disable if noclimb)
if (mo && mo->player)
{
if (line->flags & ML_NOCLIMB)
mo->flags2 &= ~MF2_TWOD;
else
mo->flags2 |= MF2_TWOD;
}
break;
case 433: // Flip gravity (Flop gravity if noclimb) Works on pushables, too! case 433: // Flip gravity (Flop gravity if noclimb) Works on pushables, too!
if (line->flags & ML_NOCLIMB) if (line->flags & ML_NOCLIMB)
mo->flags2 &= ~MF2_OBJECTFLIP; mo->flags2 &= ~MF2_OBJECTFLIP;

View file

@ -35,7 +35,7 @@ void P_MixUp(mobj_t *thing, fixed_t x, fixed_t y, fixed_t z, angle_t angle,
INT32 starpostnum, tic_t starposttime, angle_t starpostangle, INT32 starpostnum, tic_t starposttime, angle_t starpostangle,
fixed_t starpostscale, angle_t drawangle, INT32 flags2) fixed_t starpostscale, angle_t drawangle, INT32 flags2)
{ {
const INT32 takeflags2 = MF2_TWOD|MF2_OBJECTFLIP; const INT32 takeflags2 = MF2_OBJECTFLIP;
UINT8 i; UINT8 i;
(void)starposttime; (void)starposttime;