--- a/economy.c Wed Jan 12 22:10:50 2005 +0000
+++ b/economy.c Thu Jan 13 09:55:32 2005 +0000
@@ -105,10 +105,9 @@
}
}
- if (p->player_money > 0)
- value += p->money64; // add real money value
-
- return value;
+ value += p->money64 - p->current_loan; // add real money value
+
+ return max(value, 1);
}
// if update is set to true, the economy is updated with this score
@@ -1533,6 +1532,12 @@
SET_EXPENSES_TYPE(EXPENSES_OTHER);
p = DEREF_PLAYER(p1);
+
+
+ if (_cur_year - p->inaugurated_year < 6) {
+ _error_message = STR_7080_PROTECTED;
+ return CMD_ERROR;
+ }
/* Check if buying shares is allowed (protection against modified clients */
if (!_patches.allow_shares)
--- a/lang/english.txt Wed Jan 12 22:10:50 2005 +0000
+++ b/lang/english.txt Thu Jan 13 09:55:32 2005 +0000
@@ -2090,6 +2090,7 @@
STR_707D_OWNED_BY :{WHITE}({COMMA16}% owned by {STRING})
STR_707E_OWNED_BY_OWNED_BY :{WHITE}({COMMA16}% owned by {STRING}{} {COMMA16}% owned by {STRING})
STR_707F_HAS_BEEN_TAKEN_OVER_BY :{BLACK}{BIGFONT}{STRING} has been taken over by {STRING}!
+STR_7080_PROTECTED :{WHITE}This company does not trade shares yet...
##id 0x8000
STR_8000_KIRBY_PAUL_TANK_STEAM :Kirby Paul Tank (Steam)