mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
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:
+13
-1
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user