Patch by Christian Ohm:

031 - Simplify a few functions in src-keybind.c


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@881 4a71c877-e1ca-e34f-864e-861f7616d084
master
Dennis Schridde 2006-12-02 11:15:49 +00:00
parent 208f0b711b
commit 22ac91e2fe
1 changed files with 4 additions and 32 deletions

View File

@ -110,26 +110,12 @@ void kfsf_SetSelectedDroidsState( SECONDARY_ORDER sec, SECONDARY_STATE State );
// --------------------------------------------------------------------------
void kf_ToggleMissionTimer( void )
{
if(mission.cheatTime)
{
setMissionCheatTime(FALSE);
}
else
{
setMissionCheatTime(TRUE);
}
setMissionCheatTime(!mission.cheatTime);
}
// --------------------------------------------------------------------------
void kf_ToggleRadarJump( void )
{
if(getRadarJumpStatus())
{
setRadarJump(FALSE);
}
else
{
setRadarJump(TRUE);
}
setRadarJump(!getRadarJumpStatus());
}
// --------------------------------------------------------------------------
void kf_NoFaults( void )
@ -1363,26 +1349,12 @@ void kf_ChooseOptions( void )
// --------------------------------------------------------------------------
void kf_ToggleBlips( void )
{
if(doWeDrawRadarBlips())
{
setBlipDraw(FALSE);
}
else
{
setBlipDraw(TRUE);
}
setBlipDraw(!doWeDrawRadarBlips());
}
// --------------------------------------------------------------------------
void kf_ToggleProximitys( void )
{
if(doWeDrawProximitys())
{
setProximityDraw(FALSE);
}
else
{
setProximityDraw(TRUE);
}
setProximityDraw(!doWeDrawProximitys());
}
// --------------------------------------------------------------------------
void kf_JumpToResourceExtractor( void )