mirror of
https://github.com/badvision/lawless-legends.git
synced 2025-01-04 02:31:08 +00:00
Fixed bug with game load.
This commit is contained in:
parent
0e94a6fbb0
commit
cfc84188c6
@ -175,10 +175,10 @@ end
|
||||
def _saveGame()
|
||||
|
||||
// Perform garbage collection and record the size of the heap so we can restore it correctly
|
||||
mmgr(FINISH_LOAD, WITH_CLOSE)
|
||||
global=>w_heapSize = mmgr(HEAP_COLLECT, 0) - HEAP_BOTTOM
|
||||
|
||||
// Copy data to main memory
|
||||
mmgr(FINISH_LOAD, WITH_CLOSE)
|
||||
showMapName("Saving game...")
|
||||
diskActivity($FF)
|
||||
copyHeap(0) // aux to main
|
||||
|
@ -2151,6 +2151,7 @@ def startGame()
|
||||
q_mapNum = 0
|
||||
initMap(q_x, q_y, q_dir)
|
||||
else
|
||||
q_mapNum = 0
|
||||
restoreMapPos()
|
||||
fin
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user