Fix return to 2D map from automap.

This commit is contained in:
Martin Haye 2018-03-28 14:48:43 -07:00
parent 6468c0fef1
commit ba46785fec
2 changed files with 6 additions and 2 deletions

View File

@ -2983,7 +2983,12 @@ end
///////////////////////////////////////////////////////////////////////////////////////////////////
// Load the automap engine and display the map
def showAutomap()#1
word x, y
getPos(@x, @y)
loadEngine(MOD_AUTOMAP)=>automap_show()
if !mapIs3D
setPos(x, y) // Force tile engine to reload its maps and textures
fin
returnFromEngine(TRUE)
return 0
end

View File

@ -1169,8 +1169,7 @@ SETPOS:
+loadSection SE_MAP_LOC
JSR FINISH_MAP_LOAD
; And finally, render the first frame.
JSR DRAW
; Let the client choose when to render the first frame.
!if DEBUG { JSR .dbg }
RTS