new cheat/debugging command for mapscreen: CTRL+SHIFT+A will reveal all sectors and enemies

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9228 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Shadooow
2022-01-02 14:13:02 +00:00
parent e600134786
commit e20d0cb134
+13 -1
View File
@@ -7623,7 +7623,19 @@ void GetMapKeyboardInput( UINT32 *puiNewEvent )
}
break;
case 'A':
if (fCtrl && CHEATER_CHEAT_LEVEL())//reveal all sectors and show enemies
{
for (INT16 sSectorX = 0; sSectorX < MAP_WORLD_X; sSectorX++)
{
for (INT16 sSectorY = 0; sSectorY < MAP_WORLD_Y; sSectorY++)
{
SetSectorFlag(sSectorX, sSectorY, (UINT8)0, SF_ALREADY_VISITED);
SetSectorFlag(sSectorX, sSectorY, (UINT8)0, SF_PLAYER_KNOWS_ENEMIES_ARE_HERE);
}
}
}
break;
case 'b':
/*
// CTRL-B: make player's perception of all sectors correct!