diff --git a/source/sw/src/game.cpp b/source/sw/src/game.cpp index 856d70c5c..f1e9d647d 100644 --- a/source/sw/src/game.cpp +++ b/source/sw/src/game.cpp @@ -349,27 +349,6 @@ void InitLevel(MapRecord *maprec) engineLoadBoard(maprec->fileName, SW_SHAREWARE ? 1 : 0, (vec3_t*)&Player[0], &ang, &Player[0].cursectnum); currentLevel = maprec; - // Fixme. This needs to be done better. - if (!maprec->labelName.CompareNoCase("$hidtemp") && !maprec->name.CompareNoCase("$TXTS_T_MAP10")) - { - // flip the inverted card reader in TD's level 10. - if (sprite[179].picnum == 1852 && sprite[179].cstat == 92) sprite[179].cstat &= ~12; - } - if (!maprec->labelName.CompareNoCase("$subbase") && !maprec->name.CompareNoCase("$TXTS_MAP16")) - { - // clear accidental one-sided flag off a key card. - if (sprite[492].picnum == 1770 && sprite[492].cstat == 80) sprite[492].cstat &= ~64; - } - if (!maprec->labelName.CompareNoCase("$bath") && !maprec->name.CompareNoCase("$TXTS_T_MAP12")) - { - // clear accidental one-sided flag off another key card. - if (sprite[212].picnum == 1778 && sprite[212].cstat == 80) sprite[212].cstat &= ~64; - } - if (!maprec->labelName.CompareNoCase("$bath") && !maprec->name.CompareNoCase("$TXTS_W_MAP08")) - { - // clear accidental one-sided flag off yet another key card. - if (sprite[333].picnum == 1774 && sprite[333].cstat == 81) sprite[333].cstat &= ~64; - } if (!maprec->labelName.CompareNoCase("$outpost") && !maprec->name.CompareNoCase("$TXTS_MAP09")) { // silence a misplaced and *very* annoying ambient sound. diff --git a/source/sw/src/sprite.cpp b/source/sw/src/sprite.cpp index 86f343262..42b540387 100644 --- a/source/sw/src/sprite.cpp +++ b/source/sw/src/sprite.cpp @@ -1048,7 +1048,7 @@ IconSpawn(SPRITEp sp) if (numplayers <= 1 || gNet.MultiGameType == MULTI_GAME_COOPERATIVE) return false; } - + sp->cstat &= ~(CSTAT_SPRITE_BLOCK | CSTAT_SPRITE_BLOCK_HITSCAN | CSTAT_SPRITE_ONE_SIDED | CSTAT_SPRITE_ALIGNMENT_FLOOR); return true; } @@ -3151,7 +3151,7 @@ KeyMain: RESET(picanm[sp->picnum].sf, PICANM_ANIMTYPE_MASK); RESET(picanm[sp->picnum + 1].sf, PICANM_ANIMTYPE_MASK); change_sprite_stat(SpriteNum, STAT_ITEM); - RESET(sp->cstat, CSTAT_SPRITE_BLOCK | CSTAT_SPRITE_BLOCK_HITSCAN); + RESET(sp->cstat, CSTAT_SPRITE_BLOCK | CSTAT_SPRITE_BLOCK_HITSCAN | CSTAT_SPRITE_ONE_SIDED); u->Radius = 500; sp->hitag = LUMINOUS; //Set so keys over ride colored lighting