From 65ad201c391da5f60f30e83415a61d8b1fa0ec65 Mon Sep 17 00:00:00 2001 From: plagman Date: Sun, 13 Feb 2011 23:37:35 +0000 Subject: [PATCH] Fix shade updating for swapped bottomwalls. git-svn-id: https://svn.eduke32.com/eduke32@1796 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/include/polymer.h | 1 + polymer/eduke32/build/src/polymer.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/polymer/eduke32/build/include/polymer.h b/polymer/eduke32/build/include/polymer.h index 7e000e4df..60b52404c 100644 --- a/polymer/eduke32/build/include/polymer.h +++ b/polymer/eduke32/build/include/polymer.h @@ -246,6 +246,7 @@ typedef struct s_prwall { int8_t shade; char pal, xrepeat, yrepeat, xpanning, ypanning; char nwallxpanning, nwallypanning; + int8_t nwallshade; char underover; uint32_t invalidid; diff --git a/polymer/eduke32/build/src/polymer.c b/polymer/eduke32/build/src/polymer.c index 27402a196..a396ee636 100644 --- a/polymer/eduke32/build/src/polymer.c +++ b/polymer/eduke32/build/src/polymer.c @@ -2790,7 +2790,8 @@ static void polymer_updatewall(int16_t wallnum) ((nwallpicnum == w->nwallpicnum) && (wall[nwallnum].xpanning == w->nwallxpanning) && (wall[nwallnum].ypanning == w->nwallypanning) && - (wall[nwallnum].cstat == w->nwallcstat)))) + (wall[nwallnum].cstat == w->nwallcstat) && + (wall[nwallnum].shade == w->nwallshade)))) { w->flags.uptodate = 1; return; // screw you guys I'm going home @@ -2816,6 +2817,7 @@ static void polymer_updatewall(int16_t wallnum) w->nwallxpanning = wall[nwallnum].xpanning; w->nwallypanning = wall[nwallnum].ypanning; w->nwallcstat = wall[nwallnum].cstat; + w->nwallshade = wall[nwallnum].shade; } }