dont do this while not in replay

this is kinda awkward tbh, but its useful for replay stuff
This commit is contained in:
Alug committed 2025-01-04 19:33:43 +01:00
1 parent d6d9839985
commit b8e9cd0a42
1 file changed
+2 -2
+2 -2
View File
@@ -3367,8 +3367,8 @@ static void P_DemoCameraMovement(camera_t *cam, UINT8 num)
}
// if you hold item, you will lock on to displayplayer. (The last player you were ""f12-ing"")
// well this only really works in replays for us, since we still move our spec player around which causes displayplayer to be the spec player
if (cam->freecam && cmd->buttons & BT_ATTACK)
// this feels kinda pointless for ingame freecam so keep it for replays only
if (demo.playback && cmd->buttons & BT_ATTACK)
{
lastp = &players[displayplayers[0]]; // Fun fact, I was trying displayplayers[0]->mo as if it was Lua like an absolute idiot.