seems like player not always have mobjs
titledemo moment
This commit is contained in:
1 parent
5ffdadfc41
commit
77b37d6579
1 file changed
+5
-1
+5
-1
@@ -1686,9 +1686,13 @@ INT32 G_CountPlayersPotentiallyViewable(boolean active)
|
||||
static void G_FixCamera(UINT8 view)
|
||||
{
|
||||
player_t *player = &players[displayplayers[view - 1]];
|
||||
|
||||
// The order of displayplayers can change, which would
|
||||
// invalidate localangle.
|
||||
localangle[view - 1] = player->mo->angle; // Players *always* have mobjs, right?
|
||||
if (player->mo)
|
||||
localangle[view - 1] = player->mo->angle; // Players *always* have mobjs, right? // nope it seems
|
||||
else
|
||||
localangle[view - 1] = player->cmd.angleturn;
|
||||
|
||||
P_ResetCamera(player, &camera[view - 1]);
|
||||
// Make sure the viewport doesn't interpolate at all into
|
||||
|
||||
Reference in new issue
Block a user