diff --git a/polymer/eduke32/build/src/crc32.c b/polymer/eduke32/build/src/crc32.c index aec769294..2494ec53e 100644 --- a/polymer/eduke32/build/src/crc32.c +++ b/polymer/eduke32/build/src/crc32.c @@ -11,7 +11,7 @@ void initcrc32table(void) { j = i; for (k=8; k; k--) - j = (j&1) ? (0xedb88320L ^(j>>1)) : (j>>1); + j = (j&1) ? (0xedb88320L^(j>>1)) : (j>>1); crc32table[i] = j; } } diff --git a/polymer/eduke32/build/src/engine.c b/polymer/eduke32/build/src/engine.c index 2e18d5569..f24671ac9 100644 --- a/polymer/eduke32/build/src/engine.c +++ b/polymer/eduke32/build/src/engine.c @@ -7374,7 +7374,8 @@ static int32_t loadtables(void) { initksqrt(); - for (i=0; i<2048; i++) reciptable[i] = divscale30(2048L,i+2048); + for (i=0; i<2048; i++) + reciptable[i] = divscale30(2048, i+2048); if ((fil = kopen4load("tables.dat",0)) != -1) { @@ -7407,7 +7408,7 @@ static int32_t loadtables(void) static void initfastcolorlookup(int32_t rscale, int32_t gscale, int32_t bscale) { int32_t i, j, x, y, z; - char *pal1; + const char *pal1; j = 0; for (i=64; i>=0; i--) @@ -7505,7 +7506,7 @@ static int32_t loadpalette(void) int32_t getclosestcol(int32_t r, int32_t g, int32_t b) { int32_t i, j, k, dist, mindist, retcol; - char *pal1; + const char *pal1; j = (r>>3)*FASTPALGRIDSIZ*FASTPALGRIDSIZ + (g>>3)*FASTPALGRIDSIZ + (b>>3) @@ -8154,15 +8155,15 @@ void initspritelists(void) { int32_t i; - // initial list state for sector lists (analogous for statnum lists): + // initial list state for statnum lists: // - // sector 0: nil - // sector 1: nil + // statnum 0: nil + // statnum 1: nil // . . . - // sector MAXSECTORS-1: nil - // "sector MAXSECTORS": nil <- 0 <-> 1 <-> 2 <-> ... <-> MAXSPRITES-1 -> nil + // statnum MAXSTATUS-1: nil + // "statnum MAXSTATUS": nil <- 0 <-> 1 <-> 2 <-> ... <-> MAXSPRITES-1 -> nil // - // That is, the dummy MAXSECTORS sector has all sprites. + // That is, the dummy MAXSTATUS statnum has all sprites. for (i=0; i