1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-01-18 03:21:47 +02:00

Properly pass debug and cheats

This commit is contained in:
Lynn 2018-11-24 17:55:08 +01:00
parent 7e3864ef19
commit dbc862a2a7
2 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ end
--[[--
Register the events required to initialize the scenario.
]]
function Scenario.register(debug)
function Scenario.register(debug, cheats)
if global.diggy_scenario_registered then
error('Cannot register the Diggy scenario multiple times.')
return
@ -50,11 +50,11 @@ function Scenario.register(debug)
global.scenario.config.fish_market.enable = nil
end
if (_DEBUG) then
if debug then
Debug.enable_debug()
end
if (_CHEATS) then
if cheats then
Debug.enable_cheats()
end

View File

@ -1,2 +1,2 @@
-- authors Linaori, valansch
require 'map_gen.Diggy.Scenario'.register(_DEBUG)
require 'map_gen.Diggy.Scenario'.register(_DEBUG, _CHEATS)