just set backsector to NULL
if not in vanilla doom compat mode/overflow emulation GetSectorAtNullAddress will just return NULL, so we can do so aswell
This commit is contained in:
1 parent
80be424ecc
commit
ea83f2c727
1 file changed
+3
-7
+3
-7
@@ -511,7 +511,7 @@ static void P_LoadSegs(UINT8 *data)
|
||||
I_Error("P_LoadSegs: seg %s contains wrong side index %d.\n", sizeu1(i), rawside);
|
||||
#else
|
||||
rawside = 1;
|
||||
CONS_Debug(DBG_SETUP, "P_LoadSegs: seg %s contains wrong side index %d.\n", sizeu1(i), rawside);
|
||||
CONS_Debug(DBG_SETUP, "P_LoadSegs: seg %s contains wrong side index %d, replaced with 1.\n", sizeu1(i), rawside);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -549,12 +549,8 @@ static void P_LoadSegs(UINT8 *data)
|
||||
#ifdef COMPAT_VANILLA
|
||||
I_Error("P_LoadSegs: back of seg %s has no sidedef while being marked as double sided\n", sizeu1(i));
|
||||
#else
|
||||
I_Error("P_LoadSegs: back of seg %s has no sidedef while being marked as double sided\n", sizeu1(i));
|
||||
|
||||
// FIXME: port GetSectorAtNullAddress
|
||||
// this is wrong
|
||||
//li->backsector = GetSectorAtNullAddress();
|
||||
//CONS_Debug(DBG_SETUP, "P_LoadSegs: back of seg %s has no sidedef while being marked as double sided\n", sizeu1(i));
|
||||
li->backsector = NULL;
|
||||
CONS_Debug(DBG_SETUP, "P_LoadSegs: back of seg %s has no sidedef while being marked as double sided\n", sizeu1(i));
|
||||
#endif
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user