1
0
Fork 0
forked from len0rd/rockbox

Decrease doom's code size and some code cleanup.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9690 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Karl Kurbjun 2006-04-16 21:16:09 +00:00
parent 95325ff72a
commit f7872ac61b
3 changed files with 81 additions and 90 deletions

View file

@ -80,7 +80,7 @@ angle_t clipangle;
// flattening the arc to a flat projection plane.
// There will be many angles mapped to the same X.
int viewangletox[FINEANGLES/2];
int *viewangletox=0;
// The xtoviewangleangle[] table maps a screen pixel
// to the lowest viewangle that maps back to x ranges
@ -217,6 +217,9 @@ static void R_InitTextureMapping (void)
// Calc focallength
// so FIELDOFVIEW angles covers SCREENWIDTH.
if(viewangletox==NULL)
viewangletox=malloc(sizeof(int)*FINEANGLES/2);
focallength = FixedDiv(centerxfrac, finetangent[FINEANGLES/4+FIELDOFVIEW/2]);
for (i=0 ; i<FINEANGLES/2 ; i++)