mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
Fix CheckCloseRange return value
This commit is contained in:
parent
eded50e873
commit
9048c0a75c
1 changed files with 4 additions and 10 deletions
|
@ -304,19 +304,13 @@ int CheckCloseRange(short nPlayer, int *x, int *y, int *z, short *nSector)
|
|||
*nSector = hitSect;
|
||||
|
||||
if (hitSprite > -1) {
|
||||
hitSprite |= 0xC000;
|
||||
return hitSprite | 0xC000;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (hitWall > -1) {
|
||||
hitSprite |= 0x8000;
|
||||
}
|
||||
else {
|
||||
hitSprite = 0;
|
||||
}
|
||||
if (hitWall > -1) {
|
||||
return hitWall | 0x8000;
|
||||
}
|
||||
|
||||
return hitSprite;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void CheckClip(short nPlayer)
|
||||
|
|
Loading…
Reference in a new issue