mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
Updated Version of the Cover System (by CptMoore)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@3270 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1259,11 +1259,9 @@ void GetTBMousePositionInput( UINT32 *puiNewEvent )
|
||||
}
|
||||
|
||||
usOldMapPos = sMapPos;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void GetPolledKeyboardInput( UINT32 *puiNewEvent )
|
||||
{
|
||||
static BOOLEAN fShifted = FALSE;
|
||||
@@ -1382,32 +1380,32 @@ void GetPolledKeyboardInput( UINT32 *puiNewEvent )
|
||||
|
||||
if( _KeyDown( DEL ) )
|
||||
{
|
||||
DisplayCoverOfSelectedGridNo( );
|
||||
DisplayCover(TRUE);
|
||||
|
||||
fDeleteDown = TRUE;
|
||||
}
|
||||
|
||||
if( !_KeyDown( DEL ) && fDeleteDown )
|
||||
{
|
||||
RemoveCoverOfSelectedGridNo();
|
||||
//EMPTY
|
||||
|
||||
fDeleteDown = FALSE;
|
||||
}
|
||||
|
||||
if( _KeyDown( END ) )
|
||||
{
|
||||
DisplayGridNoVisibleToSoldierGrid( );
|
||||
//EMPTY
|
||||
|
||||
fEndDown = TRUE;
|
||||
}
|
||||
|
||||
if( !_KeyDown( END ) && fEndDown )
|
||||
{
|
||||
RemoveVisibleGridNoAtSelectedGridNo();
|
||||
//EMPTY
|
||||
SwitchCoverDrawMode();
|
||||
|
||||
fEndDown = FALSE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -3774,11 +3772,11 @@ void GetKeyboardInput( UINT32 *puiNewEvent )
|
||||
//if the display cover or line of sight is being displayed
|
||||
if( _KeyDown( END ) || _KeyDown( DEL ) )
|
||||
{
|
||||
if( _KeyDown( DEL ) )
|
||||
ChangeSizeOfDisplayCover( gGameSettings.ubSizeOfDisplayCover + 1 );
|
||||
//f( _KeyDown( DEL ) )
|
||||
//ChangeSizeOfDisplayCover( gGameSettings.ubSizeOfDisplayCover + 1 );
|
||||
|
||||
if( _KeyDown( END ) )
|
||||
ChangeSizeOfLOS( gGameSettings.ubSizeOfLOS + 1 );
|
||||
//if( _KeyDown( END ) )
|
||||
//ChangeSizeOfLOS( gGameSettings.ubSizeOfLOS + 1 );
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -4020,11 +4018,11 @@ void GetKeyboardInput( UINT32 *puiNewEvent )
|
||||
//if the display cover or line of sight is being displayed
|
||||
if( _KeyDown( END ) || _KeyDown( DEL ) )
|
||||
{
|
||||
if( _KeyDown( DEL ) )
|
||||
ChangeSizeOfDisplayCover( gGameSettings.ubSizeOfDisplayCover - 1 );
|
||||
//if( _KeyDown( DEL ) )
|
||||
//ChangeSizeOfDisplayCover( gGameSettings.ubSizeOfDisplayCover - 1 );
|
||||
|
||||
if( _KeyDown( END ) )
|
||||
ChangeSizeOfLOS( gGameSettings.ubSizeOfLOS - 1 );
|
||||
//if( _KeyDown( END ) )
|
||||
//ChangeSizeOfLOS( gGameSettings.ubSizeOfLOS - 1 );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user