mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 19:20:46 +00:00
Fix shade updating for swapped bottomwalls.
git-svn-id: https://svn.eduke32.com/eduke32@1796 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
ff19c75a78
commit
65ad201c39
2 changed files with 4 additions and 1 deletions
|
@ -246,6 +246,7 @@ typedef struct s_prwall {
|
||||||
int8_t shade;
|
int8_t shade;
|
||||||
char pal, xrepeat, yrepeat, xpanning, ypanning;
|
char pal, xrepeat, yrepeat, xpanning, ypanning;
|
||||||
char nwallxpanning, nwallypanning;
|
char nwallxpanning, nwallypanning;
|
||||||
|
int8_t nwallshade;
|
||||||
|
|
||||||
char underover;
|
char underover;
|
||||||
uint32_t invalidid;
|
uint32_t invalidid;
|
||||||
|
|
|
@ -2790,7 +2790,8 @@ static void polymer_updatewall(int16_t wallnum)
|
||||||
((nwallpicnum == w->nwallpicnum) &&
|
((nwallpicnum == w->nwallpicnum) &&
|
||||||
(wall[nwallnum].xpanning == w->nwallxpanning) &&
|
(wall[nwallnum].xpanning == w->nwallxpanning) &&
|
||||||
(wall[nwallnum].ypanning == w->nwallypanning) &&
|
(wall[nwallnum].ypanning == w->nwallypanning) &&
|
||||||
(wall[nwallnum].cstat == w->nwallcstat))))
|
(wall[nwallnum].cstat == w->nwallcstat) &&
|
||||||
|
(wall[nwallnum].shade == w->nwallshade))))
|
||||||
{
|
{
|
||||||
w->flags.uptodate = 1;
|
w->flags.uptodate = 1;
|
||||||
return; // screw you guys I'm going home
|
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->nwallxpanning = wall[nwallnum].xpanning;
|
||||||
w->nwallypanning = wall[nwallnum].ypanning;
|
w->nwallypanning = wall[nwallnum].ypanning;
|
||||||
w->nwallcstat = wall[nwallnum].cstat;
|
w->nwallcstat = wall[nwallnum].cstat;
|
||||||
|
w->nwallshade = wall[nwallnum].shade;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue