Subversion Repositories Kolibri OS

Rev

Rev 298 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 298 Rev 342
Line 27... Line 27...
27
 
27
 
28
 
28
 
Line -... Line 29...
-
 
29
#include 
Line 29... Line 30...
29
#include 
30
#include 
30
#include 
31
 
Line 31... Line 32...
31
 
32
#include "doomtype.h"
Line 430... Line 431...
430
    for (dc_x=vis->x1 ; dc_x<=vis->x2 ; dc_x++, frac += vis->xiscale)
431
    for (dc_x=vis->x1 ; dc_x<=vis->x2 ; dc_x++, frac += vis->xiscale)
431
    {
432
    {
432
	texturecolumn = frac>>FRACBITS;
433
        texturecolumn = frac>>FRACBITS;
433
#ifdef RANGECHECK
434
#ifdef RANGECHECK
434
	if (texturecolumn < 0 || texturecolumn >= SHORT(patch->width))
435
        if (texturecolumn < 0 || texturecolumn >= SHORT(patch->width))
-
 
436
        {
435
	    I_Error ("R_DrawSpriteRange: bad texturecolumn");
437
         //   I_Error ("R_DrawSpriteRange: bad texturecolumn");
-
 
438
          printf( "texturecolumn= %d, width= %d\n\r",
-
 
439
                   texturecolumn,patch->width);
-
 
440
          texturecolumn=patch->width-1; 
-
 
441
        }    
436
#endif
442
#endif
437
	column = (column_t *) ((byte *)patch +
443
        column = (column_t *) ((byte *)patch +
438
			       LONG(patch->columnofs[texturecolumn]));
444
                               LONG(patch->columnofs[texturecolumn]));
439
	R_DrawMaskedColumn (column);
445
        R_DrawMaskedColumn (column);
440
    }
446
    }