Skip to content

Commit

Permalink
Move back ToggleSensorDisplay to a debug function, and don't allow it…
Browse files Browse the repository at this point in the history
… in MP games.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/2.3@11501 4a71c877-e1ca-e34f-864e-861f7616d084
(cherry picked from commit 9ee9ed5)
  • Loading branch information
buginator committed Oct 19, 2010
1 parent dd87aaf commit a4cb1d0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/keybind.c
Expand Up @@ -224,6 +224,16 @@ void kf_TraceObject( void )
//===================================================
void kf_ToggleSensorDisplay( void )
{

#ifndef DEBUG
// Bail out if we're running a _true_ multiplayer game (to prevent MP cheating)
if (runningMultiplayer())
{
noMPCheatMsg();
return;
}
#endif

rangeOnScreen = !rangeOnScreen;

if (rangeOnScreen)
Expand Down
2 changes: 1 addition & 1 deletion src/keymap.c
Expand Up @@ -304,7 +304,7 @@ void keyInitMappings( BOOL bForceDefaults )
keyAddMapping(KEYMAP_ALWAYS, KEY_IGNORE, KEY_F10, KEYMAP_PRESSED, kf_ScreenDump, N_("Take Screen Shot"));
keyAddMapping(KEYMAP_ASSIGNABLE, KEY_IGNORE, KEY_F11, KEYMAP_PRESSED, kf_ToggleFormationSpeedLimiting, N_("Toggle Formation Speed Limiting"));
keyAddMapping(KEYMAP_ASSIGNABLE, KEY_IGNORE, KEY_F12, KEYMAP_PRESSED, kf_MoveToLastMessagePos, N_("View Location of Previous Message"));
keyAddMapping(KEYMAP_ASSIGNABLE, KEY_LSHIFT, KEY_F12, KEYMAP_PRESSED, kf_ToggleSensorDisplay, N_("Toggle Sensor display")); //Which key should we use? --Re enabled see below! -Q 5-10-05
keyAddMapping(KEYMAP__DEBUG, KEY_LSHIFT, KEY_F12, KEYMAP_PRESSED, kf_ToggleSensorDisplay, N_("Toggle Sensor display")); //Which key should we use? --Re enabled see below! -Q 5-10-05
// **********************************
// **********************************
// ASSIGN GROUPS
Expand Down

0 comments on commit a4cb1d0

Please sign in to comment.