mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 15:21:48 +00:00
engine.c: fix shift by negative value in parascan().
git-svn-id: https://svn.eduke32.com/eduke32@2168 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
b85b4d7b7c
commit
20d303ed15
1 changed files with 9 additions and 0 deletions
|
@ -4243,6 +4243,15 @@ static void parascan(int32_t dax1, int32_t dax2, int32_t sectnum, char dastat, i
|
||||||
globalhoriz = mulscale16(globalhoriz-(ydimen>>1),dapyscale) + (ydimen>>1);
|
globalhoriz = mulscale16(globalhoriz-(ydimen>>1),dapyscale) + (ydimen>>1);
|
||||||
|
|
||||||
k = 11 - (picsiz[globalpicnum]&15) - dapskybits;
|
k = 11 - (picsiz[globalpicnum]&15) - dapskybits;
|
||||||
|
|
||||||
|
// WGR2 SVN: select new episode after playing wgmicky1 with Polymer
|
||||||
|
// (maybe switched to classic earlier).
|
||||||
|
// --> rendmode==0, glrendmode==4, we end up with globalpicnum==266,
|
||||||
|
// picsiz...==9 and dapskybits==3
|
||||||
|
// FIXME ?
|
||||||
|
if (k < 0)
|
||||||
|
k = 0;
|
||||||
|
|
||||||
x = -1;
|
x = -1;
|
||||||
|
|
||||||
for (z=bunchfirst[bunch]; z>=0; z=p2[z])
|
for (z=bunchfirst[bunch]; z>=0; z=p2[z])
|
||||||
|
|
Loading…
Reference in a new issue