From 43161e1fd83b34fa40465e3135d4c6a32dda8041 Mon Sep 17 00:00:00 2001 From: terminx Date: Sun, 11 Jan 2015 04:55:23 +0000 Subject: [PATCH] Fix distrecip calculation git-svn-id: https://svn.eduke32.com/eduke32@4899 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/engine.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/polymer/eduke32/build/src/engine.c b/polymer/eduke32/build/src/engine.c index af866d99e..e50e35b82 100644 --- a/polymer/eduke32/build/src/engine.c +++ b/polymer/eduke32/build/src/engine.c @@ -8117,15 +8117,21 @@ static void dosetaspect(void) radarang2[i] = (int16_t)((radarang[k]+j)>>6); } - if (xdimen != oxdimen && voxlock[0][0]) + if (xdimen != oxdimen && voxoff[0][0]) { if (distrecip == NULL) distrecip = (uint32_t *)Xaligned_alloc(16, DISTRECIPSIZ * sizeof(uint32_t)); - for (i=1; i