ref: dd78c0873ec4756cc1bc430cf22ebe542ac3a23b
parent: 82ff0b70095060015274ae80c8dd66bb55011c26
parent: 1134129bf85d766ed004c1cc6d7ec914c85adc62
author: Simon Howard <[email protected]>
date: Sat Aug 11 09:02:27 EDT 2018
Merge pull request #1074 from AXDOOMER/master Heretic: Fix P_FindNextHighestFloor's behavior
--- a/src/heretic/p_spec.c
+++ b/src/heretic/p_spec.c
@@ -424,6 +424,13 @@
}
}
+ // Don't return INT_MAX if no higher floor is found.
+
+ if (!h)
+ {
+ return height;
+ }
+
// Compatibility note, in case of demo desyncs.
if (h > 20)