Fix: compiler warnings

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8814 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2020-05-30 14:26:16 +00:00
parent e932393eae
commit b25a4be4e7
15 changed files with 49 additions and 68 deletions
+3 -2
View File
@@ -8894,8 +8894,9 @@ void HandleTrainWorkers()
}
}
if ( totalworkersadded * gGameExternalOptions.usWorkerTrainingCost > 0 )
AddTransactionToPlayersBook( WORKERS_TRAINED, 0, GetWorldTotalMin( ), -(totalworkersadded * gGameExternalOptions.usWorkerTrainingCost) );
INT32 totalcost = totalworkersadded * gGameExternalOptions.usWorkerTrainingCost;
if ( totalcost > 0 )
AddTransactionToPlayersBook( WORKERS_TRAINED, 0, GetWorldTotalMin( ), -totalcost );
}
// Flugente: fortification