mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
- SW: fix bad return value in QueueWallBlood.
Had been known for some time, it just wasn't unclear if this is bad. Now I was able to confirm that this is indeed bad and can cause crashes.
This commit is contained in:
parent
5732bb2db3
commit
dc1d97b6bd
1 changed files with 1 additions and 1 deletions
|
@ -20570,7 +20570,7 @@ int QueueWallBlood(short hit_sprite, short ang)
|
|||
|
||||
// hit a sprite?
|
||||
if (hitinfo.sprite >= 0)
|
||||
return 0; // Don't try to put blood on a sprite
|
||||
return -1; // Don't try to put blood on a sprite
|
||||
|
||||
if (hitinfo.wall >= 0) // Don't check if blood didn't hit a wall, otherwise the ASSERT fails!
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue