mirror of
https://github.com/1dot13/source.git
synced 2026-09-16 14:47:17 +02:00
- bugfix: If queen retakes mine sector, player still gets income (money) from the mine although the "Daily Income" string on Strategic Screen is shown correctly.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@674 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -624,10 +624,13 @@ INT32 MineAMine( INT8 bMineIndex )
|
|||||||
{
|
{
|
||||||
// we didn't want mines to run out without player ever even going to them, so now the queen doesn't reduce the
|
// we didn't want mines to run out without player ever even going to them, so now the queen doesn't reduce the
|
||||||
// amount remaining until the mine has produced for the player first (so she'd have to capture it).
|
// amount remaining until the mine has produced for the player first (so she'd have to capture it).
|
||||||
|
|
||||||
|
// WANNE: We do not want to give money to the player, when the queen has captured the mine!
|
||||||
if ( gMineStatus[ bMineIndex ].fMineHasProducedForPlayer )
|
if ( gMineStatus[ bMineIndex ].fMineHasProducedForPlayer )
|
||||||
{
|
{
|
||||||
// don't actually give her money, just take production away
|
// don't actually give her money, just take production away
|
||||||
iAmtExtracted = ExtractOreFromMine( bMineIndex , GetCurrentWorkRateOfMineForEnemy( bMineIndex ) );
|
//iAmtExtracted = ExtractOreFromMine( bMineIndex , GetCurrentWorkRateOfMineForEnemy( bMineIndex ) );
|
||||||
|
iAmtExtracted = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user