mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 20:40:47 +00:00
- SW-TD: added a hack to flip an inverted card reader in level 10.
For now this is just inserted into the level loader - it should use more sophisticated checks. Fixes #173.
This commit is contained in:
parent
143dd3d2cf
commit
2db60ae847
1 changed files with 7 additions and 0 deletions
|
@ -348,6 +348,13 @@ void InitLevel(MapRecord *maprec)
|
|||
int16_t ang;
|
||||
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;
|
||||
}
|
||||
SECRET_SetMapName(currentLevel->DisplayName(), currentLevel->name);
|
||||
STAT_NewLevel(currentLevel->fileName);
|
||||
Player[0].angle.ang = buildang(ang);
|
||||
|
|
Loading…
Reference in a new issue