(svn r19658) -Fix: One could turn transport companies into credit banks.
This commit is contained in:
@@ -604,8 +604,8 @@ CommandCost CmdLandscapeClear(TileIndex tile, DoCommandFlag flags, uint32 p1, ui
|
|||||||
|
|
||||||
/** Clear a big piece of landscape
|
/** Clear a big piece of landscape
|
||||||
* @param tile end tile of area dragging
|
* @param tile end tile of area dragging
|
||||||
* @param p1 start tile of area dragging
|
|
||||||
* @param flags of operation to conduct
|
* @param flags of operation to conduct
|
||||||
|
* @param p1 start tile of area dragging
|
||||||
* @param p2 unused
|
* @param p2 unused
|
||||||
* @param text unused
|
* @param text unused
|
||||||
* @return the cost of this operation or an error
|
* @return the cost of this operation or an error
|
||||||
|
@@ -97,7 +97,7 @@ CommandCost CmdDecreaseLoan(TileIndex tile, DoCommandFlag flags, uint32 p1, uint
|
|||||||
loan -= loan % LOAN_INTERVAL;
|
loan -= loan % LOAN_INTERVAL;
|
||||||
break;
|
break;
|
||||||
case 2: // Repay the given amount of loan
|
case 2: // Repay the given amount of loan
|
||||||
if (p1 % LOAN_INTERVAL != 0 || (int32)p1 < LOAN_INTERVAL) return CMD_ERROR; // Invalid amount to loan
|
if (p1 % LOAN_INTERVAL != 0 || (int32)p1 < LOAN_INTERVAL || p1 > c->current_loan) return CMD_ERROR; // Invalid amount to loan
|
||||||
loan = p1;
|
loan = p1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user