save subsector checks for dedi

This commit is contained in:
Alug committed 2025-01-01 23:30:16 +01:00
1 parent fa21a9621e
commit 823b0eeaa2
1 file changed
+5 -5
+5 -5
View File
@@ -2181,11 +2181,6 @@ boolean P_TryCameraMove(fixed_t x, fixed_t y, camera_t *thiscam)
{
subsector_t *s;
if (thiscam->x != x || thiscam->y != y || thiscam->subsector == NULL)
s = R_PointInSubsectorFast(x, y);
else
s = thiscam->subsector;
boolean retval = true;
boolean itsatwodlevel = false;
UINT8 i;
@@ -2195,6 +2190,11 @@ boolean P_TryCameraMove(fixed_t x, fixed_t y, camera_t *thiscam)
if (dedicated) // this crashes so don't even try it
return false;
if (thiscam->x != x || thiscam->y != y || thiscam->subsector == NULL)
s = R_PointInSubsectorFast(x, y);
else
s = thiscam->subsector;
if (twodlevel)
itsatwodlevel = true;
else