Save editor player positions by default

This commit is contained in:
Your Name 2026-08-11 20:09:07 -04:00
parent c3a2692351
commit e5e80c2754
2 changed files with 4 additions and 27 deletions

View file

@ -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()