mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-22 16:02:29 +00:00
Kill last of MF2_TWOD -- toggletwod, line action 432
This commit is contained in:
parent
7ab84ebd2f
commit
e30232e103
7 changed files with 3 additions and 27 deletions
|
|
@ -1094,7 +1094,6 @@ void D_RegisterClientCommands(void)
|
|||
COM_AddCommand("rteleport", Command_RTeleport_f);
|
||||
COM_AddCommand("skynum", Command_Skynum_f);
|
||||
COM_AddCommand("weather", Command_Weather_f);
|
||||
COM_AddCommand("toggletwod", Command_Toggletwod_f);
|
||||
#ifdef _DEBUG
|
||||
COM_AddCommand("causecfail", Command_CauseCfail_f);
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -5649,7 +5649,7 @@ const char *const MOBJFLAG_LIST[] = {
|
|||
// \tMF2_(\S+).*// (.+) --> \t"\1", // \2
|
||||
const char *const MOBJFLAG2_LIST[] = {
|
||||
"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!
|
||||
"\x01", // free: 1<<3 (name un-matchable)
|
||||
"AUTOMATIC", // Thrown ring has automatic properties
|
||||
|
|
|
|||
|
|
@ -651,18 +651,6 @@ void Command_Weather_f(void)
|
|||
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
|
||||
// You never thought you needed this, did you? >=D
|
||||
// Yes, this has the specific purpose of completely screwing you up
|
||||
|
|
|
|||
|
|
@ -56,7 +56,6 @@ void Command_Teleport_f(void);
|
|||
void Command_RTeleport_f(void);
|
||||
void Command_Skynum_f(void);
|
||||
void Command_Weather_f(void);
|
||||
void Command_Toggletwod_f(void);
|
||||
#ifdef _DEBUG
|
||||
void Command_CauseCfail_f(void);
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -169,7 +169,7 @@ typedef enum
|
|||
typedef enum
|
||||
{
|
||||
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!
|
||||
// free: 1<<3
|
||||
MF2_AUTOMATIC = 1<<4, // Thrown ring has automatic properties
|
||||
|
|
|
|||
10
src/p_spec.c
10
src/p_spec.c
|
|
@ -2836,16 +2836,6 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
|
|||
EV_DoCrush(line, crushBothOnce);
|
||||
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!
|
||||
if (line->flags & ML_NOCLIMB)
|
||||
mo->flags2 &= ~MF2_OBJECTFLIP;
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
fixed_t starpostscale, angle_t drawangle, INT32 flags2)
|
||||
{
|
||||
const INT32 takeflags2 = MF2_TWOD|MF2_OBJECTFLIP;
|
||||
const INT32 takeflags2 = MF2_OBJECTFLIP;
|
||||
UINT8 i;
|
||||
|
||||
(void)starposttime;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue