toggle off freecam when f12ing
This commit is contained in:
1 parent
da9c19bba4
commit
f355b2269c
1 file changed
+5
-1
+5
-1
@@ -1773,7 +1773,7 @@ void G_ResetView(UINT8 viewnum, INT32 playernum, boolean onlyactive)
|
||||
G_FixCamera(viewd);
|
||||
}
|
||||
|
||||
if (viewnum == 1 && demo.playback)
|
||||
if (demo.playback && viewnum == 1)
|
||||
consoleplayer = displayplayers[0];
|
||||
}
|
||||
|
||||
@@ -1787,6 +1787,10 @@ void G_AdjustView(UINT8 viewnum, INT32 offset, boolean onlyactive)
|
||||
INT32 *displayplayerp, oldview;
|
||||
displayplayerp = &displayplayers[viewnum-1];
|
||||
oldview = (*displayplayerp);
|
||||
|
||||
// turn off the freecam
|
||||
camera[viewnum].freecam = false;
|
||||
|
||||
G_ResetView(viewnum, ( (*displayplayerp) + offset ), onlyactive);
|
||||
|
||||
// If no other view could be found, go back to what we had.
|
||||
|
||||
Reference in new issue
Block a user