author | truelight |
Tue, 14 Dec 2004 18:17:24 +0000 | |
changeset 653 | 3c902c647791 |
parent 652 | 0f553238c98a |
child 654 | 48d737ea744c |
--- a/economy.c Tue Dec 14 18:13:02 2004 +0000 +++ b/economy.c Tue Dec 14 18:17:24 2004 +0000 @@ -1514,6 +1514,10 @@ SET_EXPENSES_TYPE(EXPENSES_OTHER); p = DEREF_PLAYER(p1); + /* Those lines are here for network-protection (clients can be slow) */ + if (GetAmountOwnedBy(p, _current_player) == 0) + return 0; + /* adjust it a little to make it less profitable to sell and buy */ cost = CalculateCompanyValue(p) >> 2; cost = -(cost - (cost >> 7));