engine.c
changeset 292 9b0a6d544593
parent 257 8d83db6716ea
child 369 ab2266938fa8
--- a/engine.c	Sun Sep 19 18:23:11 2004 +0000
+++ b/engine.c	Sun Sep 19 19:56:40 2004 +0000
@@ -105,7 +105,10 @@
 		uint max = e->reliability_max;
 		e->reliability = (int)age * (int)(e->reliability_final - max) / e->duration_phase_3 + max;
 	} else {
-		e->player_avail = _patches.never_expire_vehicles ? -1 : 0;
+		// time's up for this engine
+		// make it either available to all players (if never_expire_vehicles is enabled and if it was available earlier)
+		// or disable this engine completely
+		e->player_avail = (_patches.never_expire_vehicles && e->player_avail)? -1 : 0;
 		e->reliability = e->reliability_final;
 	}
 }