[Fix] Loyalty loss in tactical screen[message #314382]
||Sat, 19 January 2013 00:25 |
||This single line patch should fix the loyalty loss that you suffer when moving in tactical screen between the militia-garrisoned sectors of a city.
I noticed this bug in Cambria but it probably happens in any city except Omerta, Drassen and Chitzena (where it's easier to increase loyalty)
The patch is against Tron's old subversion repository (last update: r7072, 2010-08). I don't know if there is an active repository nowadays. Probably not.
--- Build/Strategic/StrategicMap.cc (revision 7072)
+++ Build/Strategic/StrategicMap.cc (working copy)
@@ -2131,7 +2131,14 @@
fEnemiesInLoadedSector = TRUE;
- HandleLoyaltyImplicationsOfMercRetreat( RETREAT_TACTICAL_TRAVERSAL, gWorldSectorX, gWorldSectorY, gbWorldSectorZ );
+ if (fEnemiesInLoadedSector)
+ HandleLoyaltyImplicationsOfMercRetreat( RETREAT_TACTICAL_TRAVERSAL, gWorldSectorX, gWorldSectorY, gbWorldSectorZ );
//Setup strategic traversal information
if( guiAdjacentTraverseTime <= 5 )
Copy the "diff" file at the root of your source code tree, run the patch by typing:
(or simply add the "if" statement in 'StrategicMap.cc').
$ patch -p0 < tactical_loyalty_loss_fix.diff
In the original code, you lost loyalty because the game thought you were fleeing a fight when you left the sector, abandoning your militia to the enemy. I didn't check if the bug has always been there or not.