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:
parent
7e3864ef19
commit
dbc862a2a7
@ -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
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
-- authors Linaori, valansch
|
||||
require 'map_gen.Diggy.Scenario'.register(_DEBUG)
|
||||
require 'map_gen.Diggy.Scenario'.register(_DEBUG, _CHEATS)
|
||||
|
Loading…
x
Reference in New Issue
Block a user