hack: only let freecam for spec move when youre actually able to move as spec
cause kart weird, and we cant remove the spec movement due to synch reasons and letting the cam move instantly instead of waiting, may put you in a weird cam position
This commit is contained in:
1 parent
e18d973d5e
commit
248e47118f
1 file changed
+6
-1
+6
-1
@@ -63,6 +63,8 @@
|
||||
|
||||
static boolean onground;
|
||||
|
||||
static boolean speccam = false;
|
||||
|
||||
//
|
||||
// P_Thrust
|
||||
// Moves the given origin along a given angle.
|
||||
@@ -2274,8 +2276,11 @@ static void P_MovePlayer(player_t *player)
|
||||
if (player->spectator)
|
||||
{
|
||||
P_SpectatorMovement(player);
|
||||
speccam = true;
|
||||
return;
|
||||
}
|
||||
else
|
||||
speccam = false;
|
||||
|
||||
//////////////////////
|
||||
// MOVEMENT CODE //
|
||||
@@ -3517,7 +3522,7 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
||||
num = 0;
|
||||
}
|
||||
|
||||
if (thiscam->freecam || player->spectator)
|
||||
if (thiscam->freecam || (player->spectator && speccam == true))
|
||||
{
|
||||
P_DemoCameraMovement(thiscam, num);
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user