diff options
author | James Haley | 2012-02-09 01:54:14 +0000 |
---|---|---|
committer | James Haley | 2012-02-09 01:54:14 +0000 |
commit | 5e30a15fd98148cd9c090465d09ff264c18516c4 (patch) | |
tree | d81fb2ed4d0638d94697d7c34c982b5d3038ba4c /src/strife/r_main.c | |
parent | 9db0c9c6444dcb2aa4541466caf6b184030683ca (diff) | |
download | chocolate-doom-5e30a15fd98148cd9c090465d09ff264c18516c4.tar.gz chocolate-doom-5e30a15fd98148cd9c090465d09ff264c18516c4.tar.bz2 chocolate-doom-5e30a15fd98148cd9c090465d09ff264c18516c4.zip |
Two Strife bugs knocked out:
* R_ExecuteSetViewSize must use centery, not viewheight, or you get to
see a nice infinite horizon if you resize the screen while looking at
the floor or ceiling.
* Finally fixed status bar flickering problem when resizing the screen -
Rogue reordered some code in D_Display - HUD and ST_DrawExternal are
done *after* the border redraws.
Subversion-branch: /branches/v2-branch
Subversion-revision: 2496
Diffstat (limited to 'src/strife/r_main.c')
-rw-r--r-- | src/strife/r_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/strife/r_main.c b/src/strife/r_main.c index 0d60b332..6f303773 100644 --- a/src/strife/r_main.c +++ b/src/strife/r_main.c @@ -740,7 +740,8 @@ void R_ExecuteSetViewSize (void) // planes for (i=0 ; i<viewheight ; i++) { - dy = ((i-viewheight/2)<<FRACBITS)+FRACUNIT/2; + //dy = ((i-viewheight/2)<<FRACBITS)+FRACUNIT/2; + dy = ((i - centery)<<FRACBITS) + FRACUNIT/2; dy = abs(dy); yslope[i] = FixedDiv ( (viewwidth<<detailshift)/2*FRACUNIT, dy); } |