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