mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix savecheckpoint not working in freecam
This commit is contained in:
parent
ab091c71f8
commit
8ab3478b30
1 changed files with 7 additions and 1 deletions
|
|
@ -40,6 +40,8 @@
|
|||
|
||||
#include "fastcmp.h"
|
||||
|
||||
#include "g_party.h"
|
||||
|
||||
//
|
||||
// CHEAT SEQUENCE PACKAGE
|
||||
//
|
||||
|
|
@ -619,7 +621,11 @@ void Command_Savecheckpoint_f(void)
|
|||
REQUIRE_CHEATS;
|
||||
REQUIRE_INLEVEL;
|
||||
|
||||
if (!P_MobjWasRemoved(thing))
|
||||
if (camera[G_PartyPosition(consoleplayer)].freecam || players[consoleplayer].spectator)
|
||||
{
|
||||
D_Cheat(consoleplayer, CHEAT_SAVECHECKPOINT, camera[0].x, camera[0].y, camera[0].z);
|
||||
}
|
||||
else if (!P_MobjWasRemoved(thing))
|
||||
{
|
||||
D_Cheat(consoleplayer, CHEAT_SAVECHECKPOINT, thing->x, thing->y, thing->z);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue