Skip to content
Snippets Groups Projects
Commit ac739b40 authored by candelavla's avatar candelavla
Browse files

Fix trycameramove crash on dedicated server

parent 32bbc48b
Branches
Tags
1 merge request!2491Fix trycameramove crash on dedicated server
......@@ -2502,6 +2502,9 @@ boolean P_TryCameraMove(fixed_t x, fixed_t y, camera_t *thiscam)
floatok = false;
if (dedicated) // this crashes so don't even try it
return false;
if (twodlevel
|| (thiscam == &camera && players[displayplayer].mo && (players[displayplayer].mo->flags2 & MF2_TWOD))
|| (thiscam == &camera2 && players[secondarydisplayplayer].mo && (players[secondarydisplayplayer].mo->flags2 & MF2_TWOD)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment