Changeset - 3b6219591aa1
[Not reviewed]
default
0 1 0
Silverwing - 5 years ago 2019-07-17 18:00:22

Do not restore timer if air level is at maximum
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
leviathan.lua
Show inline comments
 
@@ -1224,7 +1224,7 @@ function leviathan_init()
 
end;
 
 
function leviathan_start()
 
	if submarine_leviathan.battery and submarine_leviathan.power_on and submarine_leviathan.airpump then
 
	if submarine_leviathan.battery and submarine_leviathan.power_on and submarine_leviathan.airpump and submarine_leviathan.air_level < 432000 then
 
		game.timer = leviathan_airpump_timer;
 
		timer:set(1000);
 
	end;
0 comments (0 inline, 0 general)