aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb
diff options
context:
space:
mode:
authorEugene Sandulenko2019-06-18 20:12:29 +0200
committerEugene Sandulenko2019-09-03 17:16:48 +0200
commiteecfb961b0bb67e4bf0b883c3317f3083777966d (patch)
tree77fd32ecf515290db0cb835283cdc98579e157ae /engines/hdb
parent0091735d0a2a67bdc0695099ece6c8b4866d7ad6 (diff)
downloadscummvm-rg350-eecfb961b0bb67e4bf0b883c3317f3083777966d.tar.gz
scummvm-rg350-eecfb961b0bb67e4bf0b883c3317f3083777966d.tar.bz2
scummvm-rg350-eecfb961b0bb67e4bf0b883c3317f3083777966d.zip
HDB: Fix output format
Diffstat (limited to 'engines/hdb')
-rw-r--r--engines/hdb/ai.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/hdb/ai.cpp b/engines/hdb/ai.cpp
index 44c02baa6c..90fbb14f52 100644
--- a/engines/hdb/ai.cpp
+++ b/engines/hdb/ai.cpp
@@ -105,15 +105,15 @@ void AI::processCines() {
case C_MOVECAMERA:
_cameraLock = true;
if (!(_cine[i]->start)) {
- debug(3, "C_MOVECAMERA: [%d] now: x: %d, y: %d, speed: %d", i, _cine[i]->x, i, _cine[i]->y, _cine[i]->speed);
+ debug(3, "C_MOVECAMERA: [%d] now: x: %f, y: %f, speed: %d", i, _cine[i]->x, _cine[i]->y, _cine[i]->speed);
_cine[i]->xv = (((double)_cine[i]->x) - _cameraX) / (double)_cine[i]->speed;
_cine[i]->yv = (((double)_cine[i]->y) - _cameraY) / (double)_cine[i]->speed;
_cine[i]->start = 1;
}
_cameraX += _cine[i]->xv;
_cameraY += _cine[i]->yv;
- debug(3, "C_MOVECAMERA: _cine[%d]->xv: %d, _cine[%d]->yv: %d", i, _cine[i]->xv, i, _cine[i]->yv);
- debug(3, "C_MOVECAMERA: abs(_cameraX - _cine[i]->x): %d, abs(_cameraY - _cine[i]->y): %d", abs(_cameraX - _cine[i]->x), abs(_cameraY - _cine[i]->y));
+ debug(3, "C_MOVECAMERA: _cine[%d]->xv: %f, _cine[%d]->yv: %f", i, _cine[i]->xv, i, _cine[i]->yv);
+ debug(3, "C_MOVECAMERA: abs(_cameraX - _cine[i]->x): %f, abs(_cameraY - _cine[i]->y): %f", abs(_cameraX - _cine[i]->x), abs(_cameraY - _cine[i]->y));
if (abs(_cameraX - _cine[i]->x) <= 1 && abs(_cameraY - _cine[i]->y) <= 1) {
_cameraX = _cine[i]->x;
_cameraY = _cine[i]->y;
@@ -203,7 +203,7 @@ void AI::cineMoveCamera(int x, int y, int speed) {
cmd->start = 0;
cmd->x = x * kTileWidth;
cmd->y = y * kTileHeight;
- debug("Setting up C_MOVECAMERA: x: %d, y: %d", cmd->x, cmd->y);
+ debug("Setting up C_MOVECAMERA: x: %f, y: %f", cmd->x, cmd->y);
cmd->cmdType = C_MOVECAMERA;
_cine.push_back(cmd);
}