mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 09:21:36 +00:00
Fix Mapster32 bug where pressing "O" on a sprite twice would corrupt your map due to unchecked use of hitscan results.
git-svn-id: https://svn.eduke32.com/eduke32@4901 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
64943543a4
commit
2928a9dfa9
1 changed files with 3 additions and 0 deletions
|
@ -2075,6 +2075,9 @@ void DoSpriteOrnament(int32_t i)
|
|||
0,
|
||||
&hit,CLIPMASK1);
|
||||
|
||||
if (hit.sect == -1)
|
||||
return;
|
||||
|
||||
sprite[i].x = hit.pos.x;
|
||||
sprite[i].y = hit.pos.y;
|
||||
sprite[i].z = hit.pos.z;
|
||||
|
|
Loading…
Reference in a new issue