From 995d679b28ccba1d592046b67e68f1eb59bbdcac Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sun, 12 May 2013 18:51:32 +0000 Subject: [PATCH] Classic rotatesprite: fix second assertion failure documented in prev. commit. git-svn-id: https://svn.eduke32.com/eduke32@3755 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/engine.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/polymer/eduke32/build/src/engine.c b/polymer/eduke32/build/src/engine.c index 218151d39..b02352b50 100644 --- a/polymer/eduke32/build/src/engine.c +++ b/polymer/eduke32/build/src/engine.c @@ -7407,14 +7407,14 @@ static void dorotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16_t by += (uint32_t)yv*(y1-oy); oy = y1; - // Assertion fails with DNF mod: in mapster32, + // Assertion would fail with DNF mod without (uint32_t) below: in mapster32, // set dt_t 3864 (bike HUD, 700x220) // set dt_z 16777216 // <-- CRASH! // (It also fails when wrecking the bike in-game by driving into a wall.) - Bassert(bx >= 0); +// Bassert(bx >= 0); - bufplce[xx] = (bx>>16)*ysiz+bufplc; + bufplce[xx] = ((uint32_t)bx>>16)*ysiz+bufplc; vplce[xx] = by; y1ve[xx] = y1; y2ve[xx] = y2-1;