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:
Wanne
2009-10-19 20:35:43 +00:00
parent 09a3f95d6f
commit 09268b81e8
25 changed files with 1081 additions and 1063 deletions
+13 -15
View File
@@ -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
{