From 2928a9dfa909ec26e4a4910a8827c9b71f369a1c Mon Sep 17 00:00:00 2001 From: terminx Date: Sun, 11 Jan 2015 04:55:50 +0000 Subject: [PATCH] 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 --- polymer/eduke32/build/src/build.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/polymer/eduke32/build/src/build.c b/polymer/eduke32/build/src/build.c index eb516ed0a..7a0e4c6b1 100644 --- a/polymer/eduke32/build/src/build.c +++ b/polymer/eduke32/build/src/build.c @@ -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;