- 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:
Christoph Oelckers 2021-11-13 19:27:51 +01:00
parent 5732bb2db3
commit dc1d97b6bd

View file

@ -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!
{