Merged from revision: 7046

Feature Improvement: Fast Forward Turn (by Sevenfm)
0 - default behaviour
1 - auto fast forward only invisible
2 - auto fast forward always

AUTO_FAST_FORWARD_CIVS = 0
AUTO_FAST_FORWARD_CREATURES = 0

- Minor cosmetic fixes/improvements

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7047 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2014-03-10 19:19:23 +00:00
parent fefbbc8e88
commit b6796d022c
4 changed files with 40 additions and 3 deletions
+32
View File
@@ -2650,6 +2650,38 @@ void UpdateFastForwardMode( SOLDIERTYPE* pSoldier )
break;
}
}
else if ( pSoldier->bTeam == CIV_TEAM )
{
switch( gGameExternalOptions.ubAutoFastForwardCivs )
{
case 0: // default mode
forward = gGameSettings.fOptions[TOPTION_AUTO_FAST_FORWARD_MODE];
break;
case 1: // auto fast forward only invisible civs
if( pSoldier->bVisible == -1 )
forward = TRUE && !action;
break;
case 2: // auto fast forward civs always
forward = TRUE && !action;
break;
}
}
else if ( pSoldier->bTeam == CREATURE_TEAM )
{
switch( gGameExternalOptions.ubAutoFastForwardCreatures )
{
case 0: // default mode
forward = gGameSettings.fOptions[TOPTION_AUTO_FAST_FORWARD_MODE];
break;
case 1: // auto fast forward only invisible
if( pSoldier->bVisible == -1 )
forward = TRUE && !action;
break;
case 2: // auto fast forward always
forward = TRUE && !action;
break;
}
}
else
{
switch ( gGameExternalOptions.ubAutoFastForwardEnemies )