mirror of
https://github.com/badvision/lawless-legends.git
synced 2024-08-02 15:29:00 +00:00
Cleaned some debug stuff up.
This commit is contained in:
parent
f22f4ed9db
commit
329a7070ce
@ -573,7 +573,7 @@ def loadFrameImg()
|
|||||||
titleLoaded = FALSE
|
titleLoaded = FALSE
|
||||||
fin
|
fin
|
||||||
loader(SET_MEM_TARGET, MAIN_MEM, $2000)
|
loader(SET_MEM_TARGET, MAIN_MEM, $2000)
|
||||||
loader(QUEUE_LOAD, MAIN_MEM, (3-mapIs3D)<<8 | RES_TYPE_SCREEN)
|
loader(QUEUE_LOAD, MAIN_MEM, (mapIs3D+2)<<8 | RES_TYPE_SCREEN)
|
||||||
loader(LOCK_MEMORY, MAIN_MEM, $2000)
|
loader(LOCK_MEMORY, MAIN_MEM, $2000)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -618,9 +618,7 @@ def initMap(x, y, dir)
|
|||||||
// Start up the display engine with map data and starting position. This will also load and
|
// Start up the display engine with map data and starting position. This will also load and
|
||||||
// init the script module, if any, which will end up calling us back at the setScriptInfo
|
// init the script module, if any, which will end up calling us back at the setScriptInfo
|
||||||
triggerTbl = NULL
|
triggerTbl = NULL
|
||||||
printf2("initDisplay: mapNum=%d pMap=%x\n", mapNum, pMap)
|
|
||||||
initDisplay(mapNum, pMap, x, y, dir)
|
initDisplay(mapNum, pMap, x, y, dir)
|
||||||
puts("Back from initDisplay.\n")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@ -775,23 +773,18 @@ def setMap(is3D, num, x, y, dir)
|
|||||||
checkScripts()
|
checkScripts()
|
||||||
end
|
end
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
def debugPos()
|
|
||||||
word x, y
|
|
||||||
^$c053
|
|
||||||
getPos(@x, @y)
|
|
||||||
printf2("x=%d y=%d\n", x, y)
|
|
||||||
end
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
def teleport()
|
def teleport()
|
||||||
word x, y
|
word x, y
|
||||||
^$c053
|
^$c053
|
||||||
if ^$25 < 20; ^$25 = 20; crout(); fin
|
if ^$25 < 23; ^$25 = 23; fin
|
||||||
puts("X: ")
|
getPos(@x, @y)
|
||||||
|
printf2("\nCurrent location: X=%d Y=%d\n", x, y)
|
||||||
|
puts("New X: ")
|
||||||
x = parseDec(getstr())
|
x = parseDec(getstr())
|
||||||
puts("Y: ")
|
puts("New Y: ")
|
||||||
y = parseDec(getstr())
|
y = parseDec(getstr())
|
||||||
|
^$c052
|
||||||
setMap(mapIs3D, mapNum, x, y, 0)
|
setMap(mapIs3D, mapNum, x, y, 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -813,7 +806,6 @@ def kbdLoop()
|
|||||||
func = cmdTbl[key]
|
func = cmdTbl[key]
|
||||||
if func; func(); fin
|
if func; func(); fin
|
||||||
fin
|
fin
|
||||||
debugPos()
|
|
||||||
loop
|
loop
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -822,8 +814,6 @@ end
|
|||||||
// is called by the init function for the scripts.
|
// is called by the init function for the scripts.
|
||||||
def setScriptInfo(mapName, trigTbl)
|
def setScriptInfo(mapName, trigTbl)
|
||||||
|
|
||||||
printf2("scriptInfo: mapName=%x trigTbl=%x\n", mapName, trigTbl)
|
|
||||||
|
|
||||||
// Record the trigger table pointer
|
// Record the trigger table pointer
|
||||||
triggerTbl = trigTbl
|
triggerTbl = trigTbl
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
!source "../include/mem.i"
|
!source "../include/mem.i"
|
||||||
!source "../include/plasma.i"
|
!source "../include/plasma.i"
|
||||||
|
|
||||||
DEBUG = 1 ; 1=some logging, 2=lots of logging
|
DEBUG = 0 ; 1=some logging, 2=lots of logging
|
||||||
|
|
||||||
HEADER_LENGTH=6
|
HEADER_LENGTH=6
|
||||||
SECTION_WIDTH=22
|
SECTION_WIDTH=22
|
||||||
|
Loading…
Reference in New Issue
Block a user