diff --git a/polymer/eduke32/source/actors.c b/polymer/eduke32/source/actors.c index 94f39fbb1..c929799a2 100644 --- a/polymer/eduke32/source/actors.c +++ b/polymer/eduke32/source/actors.c @@ -1008,7 +1008,7 @@ void A_MoveDummyPlayers(void) else { if (sector[SECT].lotag != ST_2_UNDERWATER) SZ = sector[SECT].floorz; - CS = (int16_t) 32768; + CS = 32768; } } @@ -3794,7 +3794,7 @@ ACTOR_STATIC void G_MoveActors(void) { if (g_noEnemies == 1) { - s->cstat = (int16_t)32768; + s->cstat = 32768; goto BOLT; } else if (g_noEnemies == 2) s->cstat = 257; @@ -4006,7 +4006,7 @@ ACTOR_STATIC void G_MoveActors(void) { if (g_noEnemies == 1) { - s->cstat = (int16_t)32768; + s->cstat = 32768; goto BOLT; } else if (g_noEnemies == 2) s->cstat = 257; @@ -4580,7 +4580,7 @@ DETONATEB: { t[2] = g_itemRespawnTime; A_Spawn(i,RESPAWNMARKERRED); - s->cstat = (int16_t) 32768; + s->cstat = 32768; s->yrepeat = 9; goto BOLT; } @@ -4624,7 +4624,7 @@ DETONATEB: { t[2] = g_itemRespawnTime; A_Spawn(i,RESPAWNMARKERRED); - s->cstat = (int16_t) 32768; + s->cstat = 32768; } } @@ -4652,8 +4652,8 @@ DETONATEB: case SECTOREFFECTOR__STATIC: if (sprite[j].lotag == 1) { - sprite[j].lotag = (int16_t) 65535; - sprite[j].hitag = (int16_t) 65535; + sprite[j].lotag = 65535; + sprite[j].hitag = 65535; } break; case REACTOR__STATIC: @@ -4664,7 +4664,7 @@ DETONATEB: break; case REACTORSPARK__STATIC: case REACTOR2SPARK__STATIC: - sprite[j].cstat = (int16_t) 32768; + sprite[j].cstat = 32768; break; } j = nextspritesect[j]; @@ -4794,7 +4794,7 @@ DETONATEB: if ((j = A_IncurDamage(i)) >= 0) { t[0] = 1; // static - s->cstat = (int16_t)32768; + s->cstat = 32768; for (x=0; x<5; x++) RANDOMSCRAP; goto BOLT; } @@ -4822,7 +4822,7 @@ DETONATEB: { if (g_noEnemies == 1) { - s->cstat = (int16_t)32768; + s->cstat = 32768; goto BOLT; } else if (g_noEnemies == 2) diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index fe6905482..95477a911 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -4362,7 +4362,7 @@ int32_t A_Spawn(int32_t j, int32_t pn) case FORCESPHERE__STATIC: if (j == -1) { - sp->cstat = (int16_t) 32768; + sp->cstat = 32768; changespritestat(i, STAT_ZOMBIEACTOR); } else @@ -4804,7 +4804,7 @@ int32_t A_Spawn(int32_t j, int32_t pn) changespritestat(i, STAT_MISC); break; } - sp->cstat = (int16_t)32768; + sp->cstat = 32768; changespritestat(i, STAT_FX); break; @@ -5155,7 +5155,7 @@ int32_t A_Spawn(int32_t j, int32_t pn) case ACTIVATORLOCKED__STATIC: case ACTIVATOR__STATIC: - sp->cstat = (int16_t) 32768; + sp->cstat = 32768; if (sp->picnum == ACTIVATORLOCKED) sector[sp->sectnum].lotag |= 16384; changespritestat(i, STAT_ACTIVATOR); @@ -5937,7 +5937,7 @@ int32_t A_Spawn(int32_t j, int32_t pn) sp->shade = -16; if (sp->xrepeat <= 8) { - sp->cstat = (int16_t)32768; + sp->cstat = 32768; sp->xrepeat=sp->yrepeat=0; } else sp->cstat = 1+256; diff --git a/polymer/eduke32/source/sector.c b/polymer/eduke32/source/sector.c index 1bba17b9a..db2ed8592 100644 --- a/polymer/eduke32/source/sector.c +++ b/polymer/eduke32/source/sector.c @@ -1436,7 +1436,7 @@ int32_t P_ActivateSwitch(int32_t snum,int32_t w,int32_t switchissprite) } } - if (lotag == (int16_t) 65535) + if (lotag == 65535) { g_player[myconnectindex].ps->gm = MODE_EOL;