Love:Mike: Removed dead code
This commit is contained in:
parent
e5ef06f61a
commit
61323d7658
@ -14,7 +14,6 @@ function love.keyreleased(key)
|
|||||||
|
|
||||||
-- save
|
-- save
|
||||||
elseif key == SAVE_KEY then
|
elseif key == SAVE_KEY then
|
||||||
--love.filesystem.write(saveFile, Tserial.pack(player, false, true))
|
|
||||||
love.filesystem.write(SAVE_FILE, GameState.save(actors, "actors"))
|
love.filesystem.write(SAVE_FILE, GameState.save(actors, "actors"))
|
||||||
|
|
||||||
-- Load
|
-- Load
|
||||||
@ -23,7 +22,6 @@ function love.keyreleased(key)
|
|||||||
save_exists = love.filesystem.exists(SAVE_FILE)
|
save_exists = love.filesystem.exists(SAVE_FILE)
|
||||||
|
|
||||||
if save_exists then
|
if save_exists then
|
||||||
--player = Tserial.unpack( love.filesystem.read( saveFile ) )
|
|
||||||
actors = GameState.load(SAVE_FILE)
|
actors = GameState.load(SAVE_FILE)
|
||||||
-- Tell the timer to ignore time passed between the save and the load
|
-- Tell the timer to ignore time passed between the save and the load
|
||||||
actors.start = love.timer.getTime() - actors.end_timer
|
actors.start = love.timer.getTime() - actors.end_timer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user