(svn r1465) -Fix: [1099101] starting year patch goes out of range. Clamped year between 1920-2090 as wel as adding defines for it.

This commit is contained in:
darkvater
2005-01-10 14:43:00 +00:00
parent fae367ab31
commit 29b4ab04c3
10 changed files with 22 additions and 19 deletions

View File

@@ -941,7 +941,7 @@ static void FixPlayer(Player *n, OldPlayer *o, int num, byte town_name_type)
FixEconomy(&n->cur_economy, &o->economy[0]);
for(i=0; i!=24; i++) FixEconomy(&n->old_economy[i], &o->economy[i+1]);
n->inaugurated_year = o->inaugurated_date - 1920;
n->inaugurated_year = o->inaugurated_date - MAX_YEAR_BEGIN_REAL;
n->last_build_coordinate = o->last_build_coordinate;
n->num_valid_stat_ent = o->num_valid_stat_ent;