mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
- New Feature: Added option to disable the automatic cursor swap (between exchanging positions and other actions eg. talking). (by tazpn)
o if enabled in the option screen, the cursor will not change periodically to the exchange position. o if enabled, you can manually exchange positions by pressing 'x' o see here: http://www.ja-galaxy-forum.com/board/ubbthreads.php?ubb=showflat&Number=290487#Post290487 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4643 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+20
-9
@@ -586,10 +586,13 @@ UINT32 HandleTacticalUI( void )
|
||||
}
|
||||
}
|
||||
|
||||
if ( ( GetJA2Clock( ) - guiUIInterfaceSwapCursorsTime ) > 1000 )
|
||||
if ( !gGameSettings.fOptions[TOPTION_DISABLE_CURSOR_SWAP] )
|
||||
{
|
||||
gfOKForExchangeCursor = !gfOKForExchangeCursor;
|
||||
guiUIInterfaceSwapCursorsTime = GetJA2Clock( );
|
||||
if ( ( GetJA2Clock( ) - guiUIInterfaceSwapCursorsTime ) > 1000 )
|
||||
{
|
||||
gfOKForExchangeCursor = !gfOKForExchangeCursor;
|
||||
guiUIInterfaceSwapCursorsTime = GetJA2Clock( );
|
||||
}
|
||||
}
|
||||
|
||||
// OK, do a check for on an int tile...
|
||||
@@ -6553,13 +6556,21 @@ BOOLEAN ValidQuickExchangePosition( )
|
||||
}
|
||||
}
|
||||
|
||||
if ( fOldOnValidGuy != fOnValidGuy )
|
||||
if ( gGameSettings.fOptions[TOPTION_DISABLE_CURSOR_SWAP] )
|
||||
{
|
||||
// Update timer....
|
||||
// ATE: Adjust clock for automatic swapping so that the 'feel' is there....
|
||||
guiUIInterfaceSwapCursorsTime = GetJA2Clock( );
|
||||
// Default it!
|
||||
gfOKForExchangeCursor = TRUE;
|
||||
gfOKForExchangeCursor = FALSE;
|
||||
fOnValidGuy = FALSE;
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( fOldOnValidGuy != fOnValidGuy )
|
||||
{
|
||||
// Update timer....
|
||||
// ATE: Adjust clock for automatic swapping so that the 'feel' is there....
|
||||
guiUIInterfaceSwapCursorsTime = GetJA2Clock( );
|
||||
// Default it!
|
||||
gfOKForExchangeCursor = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
// Update old value.....
|
||||
|
||||
Reference in New Issue
Block a user