aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen
diff options
context:
space:
mode:
authorPaul Gilbert2018-03-27 21:52:20 -0400
committerPaul Gilbert2018-03-27 21:52:20 -0400
commit2be2339a21eb244d5122f798397efe23cffebdc7 (patch)
tree885e872cd53d55c6a236c63de17ce39694c0aa3f /engines/xeen
parent5b5abd47434c3d0680f7ca7df7eb6f7291dc4599 (diff)
downloadscummvm-rg350-2be2339a21eb244d5122f798397efe23cffebdc7.tar.gz
scummvm-rg350-2be2339a21eb244d5122f798397efe23cffebdc7.tar.bz2
scummvm-rg350-2be2339a21eb244d5122f798397efe23cffebdc7.zip
XEEN: Simplify debugger map command
Diffstat (limited to 'engines/xeen')
-rw-r--r--engines/xeen/debugger.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/xeen/debugger.cpp b/engines/xeen/debugger.cpp
index bd6c8ad142..4fbef4fa15 100644
--- a/engines/xeen/debugger.cpp
+++ b/engines/xeen/debugger.cpp
@@ -165,15 +165,15 @@ bool Debugger::cmdMap(int argc, const char **argv) {
Party &party = *g_vm->_party;
if (argc < 2) {
- debugPrintf("map mapId [ sideNum [ xp, yp ]]\n");
+ debugPrintf("map mapId [ xp, yp ] [ sideNum ]\n");
return true;
} else {
int mapId = strToInt(argv[1]);
- int side = argc < 3 ? files._ccNum : strToInt(argv[2]);
- int x = argc < 4 ? 8 : strToInt(argv[3]);
- int y = argc < 5 ? 8 : strToInt(argv[4]);
-
- map._loadCcNum = side;
+ int x = argc < 3 ? 8 : strToInt(argv[2]);
+ int y = argc < 4 ? 8 : strToInt(argv[3]);
+
+ if (argc == 5)
+ map._loadCcNum = strToInt(argv[4]);
map.load(mapId);
party._mazePosition.x = x;
party._mazePosition.y = y;