mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-18 15:11:51 +00:00
Accumulated trivia.
- engine.c: move some variables into a lower block - premap.c: clearbufbyte --> Bmemset git-svn-id: https://svn.eduke32.com/eduke32@2532 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
c4efd9b1fa
commit
6cd11d0468
3 changed files with 9 additions and 6 deletions
|
@ -1645,7 +1645,7 @@ static int32_t defsparser(scriptfile *script)
|
|||
kclose(fd);
|
||||
kpgetdim(filebuf, filesize, &xsiz, &ysiz);
|
||||
|
||||
if (xsiz != PR_HIGHPALOOKUP_DIM *PR_HIGHPALOOKUP_DIM || ysiz != PR_HIGHPALOOKUP_DIM)
|
||||
if (xsiz != PR_HIGHPALOOKUP_DIM*PR_HIGHPALOOKUP_DIM || ysiz != PR_HIGHPALOOKUP_DIM)
|
||||
{
|
||||
initprintf("Error: image dimensions of '%s' must be %dx%d.\n",
|
||||
fn, PR_HIGHPALOOKUP_DIM*PR_HIGHPALOOKUP_DIM, PR_HIGHPALOOKUP_DIM);
|
||||
|
|
|
@ -6861,8 +6861,8 @@ static void dorotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16_t
|
|||
#endif
|
||||
{
|
||||
char bad;
|
||||
int32_t ny1, ny2, xx, xend;
|
||||
int32_t qlinemode=0, y1ve[4], y2ve[4], u4, d4;
|
||||
int32_t xx, xend;
|
||||
int32_t y1ve[4], y2ve[4], u4, d4;
|
||||
|
||||
if (((a&1023) == 0) && (ysiz <= 256)) //vlineasm4 has 256 high limit!
|
||||
{
|
||||
|
@ -6966,6 +6966,9 @@ static void dorotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16_t
|
|||
#ifndef ENGINE_USING_A_C
|
||||
else
|
||||
{
|
||||
int32_t ny1, ny2;
|
||||
int32_t qlinemode = 0;
|
||||
|
||||
if (dastat&64)
|
||||
{
|
||||
if ((xv2&0x0000ffff) == 0)
|
||||
|
|
|
@ -1107,9 +1107,9 @@ static inline void prelevel(char g)
|
|||
uint8_t tagbitmap[65536>>3];
|
||||
Bmemset(tagbitmap, 0, sizeof(tagbitmap));
|
||||
|
||||
clearbufbyte(show2dsector,sizeof(show2dsector),0L);
|
||||
clearbufbyte(show2dwall,sizeof(show2dwall),0L);
|
||||
clearbufbyte(show2dsprite,sizeof(show2dsprite),0L);
|
||||
Bmemset(show2dsector, 0, sizeof(show2dsector));
|
||||
Bmemset(show2dsprite, 0, sizeof(show2dsprite));
|
||||
Bmemset(show2dwall, 0, sizeof(show2dwall));
|
||||
|
||||
Bmemset(ror_protectedsectors, 0, MAXSECTORS);
|
||||
|
||||
|
|
Loading…
Reference in a new issue