ref: 1134129bf85d766ed004c1cc6d7ec914c85adc62
parent: 82ff0b70095060015274ae80c8dd66bb55011c26
author: Alexandre-Xavier Labonté-Lamoureux <alexandrexavier@live.ca>
date: Mon Aug 6 17:03:16 EDT 2018
Heretic: Fix P_FindNextHighestFloor's behavior The floor would raise to INT_MAX if no surrounding sector was higher, which isn't how vanilla Heretic behaves.
--- 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)