Changeset - r2572:0b5b25d7740b
[Not reviewed]
master
0 2 0
peter1138 - 18 years ago 2005-10-31 11:22:52
peter1138@openttd.org
(svn r3109) Replace two occurrences of '256' with TOTAL_NUM_ENGINES
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
openttd.c
Show inline comments
 
@@ -1280,13 +1280,13 @@ bool AfterLoadGame(uint version)
 
		} END_TILE_LOOP(tile, MapSizeX(), MapSizeY(), 0);
 
	}
 

	
 
	if (version < 0x1000) {
 
		int i;
 
		FOR_ALL_PLAYERS(p) {
 
			for (i = 0; i < 256; i++) {
 
			for (i = 0; i < TOTAL_NUM_ENGINES; i++) {
 
				p->engine_replacement[i] = INVALID_ENGINE;
 
			}
 
			p->engine_renew = false;
 
			p->engine_renew_months = -6;
 
			p->engine_renew_money = 100000;
 
		}
players.c
Show inline comments
 
@@ -491,13 +491,13 @@ Player *DoStartupNewPlayer(bool is_ai)
 

	
 
	p->avail_railtypes = GetPlayerRailtypes(p->index);
 
	p->inaugurated_year = _cur_year;
 
	p->face = Random();
 

	
 
	/* Engine renewal settings */
 
	for (i = 0; i < 256; i++)
 
	for (i = 0; i < TOTAL_NUM_ENGINES; i++)
 
		p->engine_replacement[i] = INVALID_ENGINE;
 

	
 
	p->engine_renew = false;
 
	p->engine_renew_months = -6;
 
	p->engine_renew_money = 100000;
 

	
0 comments (0 inline, 0 general)