From c71b3d529cc85b54a886e6de9d8c2129f6d23f39 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sat, 10 Nov 2012 14:11:13 +0000 Subject: [PATCH] Classic: fix rotatesprite with no screen scaling and non-widescreen aspects. Also, enable showing sprites in Mapster32's overhead view again, since that was one (the only?) use of that code path. The uninitialized read was introduced in r2927. git-svn-id: https://svn.eduke32.com/eduke32@3144 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/engine.c | 9 +++++++-- polymer/eduke32/source/astub.c | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/polymer/eduke32/build/src/engine.c b/polymer/eduke32/build/src/engine.c index 84017c2f9..b2aa172db 100644 --- a/polymer/eduke32/build/src/engine.c +++ b/polymer/eduke32/build/src/engine.c @@ -6886,9 +6886,14 @@ void dorotspr_handle_bit2(int32_t *sxptr, int32_t *syptr, int32_t *z, int32_t da { *ret_yxaspect = (12<<16)/10; *ret_xyaspect = (10<<16)/12; - - // *sxptr and *syptr and *z are left unchanged } + else + { + *ret_yxaspect = yxaspect; + *ret_xyaspect = xyaspect; + } + + // *sxptr and *syptr and *z are left unchanged return; } diff --git a/polymer/eduke32/source/astub.c b/polymer/eduke32/source/astub.c index b847346d1..92f2b362c 100644 --- a/polymer/eduke32/source/astub.c +++ b/polymer/eduke32/source/astub.c @@ -10848,7 +10848,7 @@ void ExtPreCheckKeys(void) // just before drawrooms // if (cursectornum >= 0) // fillsector(cursectornum, 31); - if (0 && graphicsmode && !m32_sideview && zoom >= 256) + if (graphicsmode && !m32_sideview && zoom >= 256) { for (i=ii=0; i