mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 18:06:26 +00:00
SAGA2: Add more debug messages
This commit is contained in:
parent
97f7a0e529
commit
6d09e62b2b
@ -2922,10 +2922,12 @@ inline void drawMetaTiles(void) {
|
||||
|
||||
viewPos.x = (tileScroll.x >> tileDXShift)
|
||||
- (platformWidth * mapList[currentMapNum].mapSize),
|
||||
viewPos.y = (platformWidth
|
||||
* mapList[currentMapNum].mapSize
|
||||
* tileDX)
|
||||
- tileScroll.y;
|
||||
viewPos.y = (platformWidth
|
||||
* mapList[currentMapNum].mapSize
|
||||
* tileDX)
|
||||
- tileScroll.y;
|
||||
|
||||
debugC(2, kDebugTiles, "viewPos = (%d,%d)", viewPos.x, viewPos.y);
|
||||
|
||||
// coordinates of the view window upper left corner in U,V
|
||||
|
||||
@ -2935,17 +2937,21 @@ inline void drawMetaTiles(void) {
|
||||
/ (platformWidth * 2);
|
||||
baseCoords.z = 0;
|
||||
|
||||
debugC(2, kDebugTiles, "baseCoords = (%d,%d,%d)", baseCoords.u, baseCoords.v, baseCoords.z);
|
||||
|
||||
setAreaSound(baseCoords); //+TilePoint(tileRectWidth, tileRectHeight,0));
|
||||
|
||||
updateHandleRefs(baseCoords); // viewPoint, &sti );
|
||||
// coordinates of current metatile (in X,Y), relative to screen
|
||||
|
||||
metaPos.x = (baseCoords.u - baseCoords.v) * metaDX
|
||||
- viewPos.x * tileDX;
|
||||
- viewPos.x * tileDX;
|
||||
|
||||
metaPos.y = viewPos.y
|
||||
- (baseCoords.u + baseCoords.v) * metaDY;
|
||||
|
||||
debugC(2, kDebugTiles, "metaPos = (%d,%d)", metaPos.x, metaPos.y);
|
||||
|
||||
// Loop through each horizontal row of metatiles
|
||||
// REM: also account for highest possible platform
|
||||
// (replace 256 constant with better value)
|
||||
@ -4613,6 +4619,7 @@ void updateMainDisplay(void) {
|
||||
|
||||
// Get the coordinates of the object which the camera is tracking
|
||||
getViewTrackPos(trackPos);
|
||||
debugC(1, kDebugTiles, "trackPos = (%d,%d,%d)", trackPos.u, trackPos.v, trackPos.z);
|
||||
|
||||
viewDiff = trackPos - lastViewLoc;
|
||||
lastViewLoc = trackPos;
|
||||
@ -4631,6 +4638,7 @@ void updateMainDisplay(void) {
|
||||
targetScroll.y =
|
||||
curMap->mapHeight - (trackPos.u + trackPos.v)
|
||||
- trackPos.z - tileRect.height / 2 - 32;
|
||||
debugC(1, kDebugTiles, "targetScroll = (%d,%d)", targetScroll.x, targetScroll.y);
|
||||
|
||||
// Compute the delta vector between the current scroll position
|
||||
// and the desired scroll position, and also compute the
|
||||
|
Loading…
x
Reference in New Issue
Block a user