Changeset - r26685:a26be1c09f03
[Not reviewed]
master
0 1 0
Peter Nelson - 21 months ago 2022-12-11 13:22:17
peter1138@openttd.org
Change: Attempt to improve randomisation of reliability
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/engine.cpp
Show inline comments
 
@@ -685,7 +685,8 @@ void StartupOneEngine(Engine *e, Date ag
 
	}
 

	
 
	SetRandomSeed(_settings_game.game_creation.generation_seed ^
 
	              re->index ^
 
	              (re->index << 16) ^ (re->info.base_intro << 12) ^ (re->info.decay_speed << 8) ^
 
	              (re->info.lifelength << 4) ^ re->info.retire_early ^
 
	              e->type ^
 
	              e->GetGRFID());
 

	
0 comments (0 inline, 0 general)