Fixed bug with game load.

This commit is contained in:
Martin Haye 2016-06-24 07:16:08 -07:00
parent 0e94a6fbb0
commit cfc84188c6
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -2151,6 +2151,7 @@ def startGame()
q_mapNum = 0
initMap(q_x, q_y, q_dir)
else
q_mapNum = 0
restoreMapPos()
fin
end