Save editor player positions by default
This commit is contained in:
parent
c3a2692351
commit
e5e80c2754
2 changed files with 4 additions and 27 deletions
|
|
@ -469,8 +469,8 @@ local function saveRoomFromEditor()
|
|||
return
|
||||
end
|
||||
|
||||
local savePlayerPositions = love.keyboard.isDown("lshift", "rshift")
|
||||
if not currentRoom:saveToSource(name, savePlayerPositions, oldName) then
|
||||
local savePlayerPositions = not love.keyboard.isDown("lshift", "rshift")
|
||||
if not currentRoom:saveToSource(name, savePlayerPositions) then
|
||||
editorStatus = "Could not save '" .. name .. "'."
|
||||
return
|
||||
end
|
||||
|
|
@ -492,7 +492,7 @@ local function saveRoomFromEditor()
|
|||
editorRoomName = name
|
||||
roomNameField:editText(name)
|
||||
activeField = nil
|
||||
editorStatus = "Saved source level '" .. name .. "'" .. (savePlayerPositions and " with player positions." or ".")
|
||||
editorStatus = "Saved source level '" .. name .. "'" .. (savePlayerPositions and " with player positions." or " without player positions.")
|
||||
end
|
||||
|
||||
local function clearRuntimeSaves()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue