- Duke: Fix lotag signedness issue affecting SE10 (door auto-close).

* Originated in 01abe7b2ac while removing a casting to short.
* Fixes #594.
This commit is contained in:
Mitchell Richters 2021-12-10 17:26:56 +11:00
parent a8c4d61fab
commit ee1ffd2347

View file

@ -3586,7 +3586,7 @@ void handle_se10(DDukeActor* actor, const int* specialtags)
auto sc = actor->getSector();
int sh = s->hitag;
if ((sc->lotag & 0xff) == 27 || (sc->floorz > sc->ceilingz && (sc->lotag & 0xff) != 23) || sc->lotag == 65536 - 32791)
if ((sc->lotag & 0xff) == 27 || (sc->floorz > sc->ceilingz && (sc->lotag & 0xff) != 23) || sc->lotag == 32791 - 65536)
{
int j = 1;