Fix CheckCloseRange return value

This commit is contained in:
nukeykt 2019-11-16 21:27:44 +09:00 committed by Christoph Oelckers
parent eded50e873
commit 9048c0a75c

View file

@ -304,19 +304,13 @@ int CheckCloseRange(short nPlayer, int *x, int *y, int *z, short *nSector)
*nSector = hitSect; *nSector = hitSect;
if (hitSprite > -1) { if (hitSprite > -1) {
hitSprite |= 0xC000; return hitSprite | 0xC000;
} }
else if (hitWall > -1) {
{ return hitWall | 0x8000;
if (hitWall > -1) {
hitSprite |= 0x8000;
}
else {
hitSprite = 0;
}
} }
return hitSprite; return 0;
} }
void CheckClip(short nPlayer) void CheckClip(short nPlayer)