aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb
diff options
context:
space:
mode:
authorEugene Sandulenko2019-06-06 00:58:36 +0200
committerEugene Sandulenko2019-09-03 17:16:43 +0200
commitfcdebdc015ee2ffb0c2ff1faa20730f4e7c51ce7 (patch)
tree00bbc930a03a26f0f12a693779c114616079c284 /engines/hdb
parentefa460599d37b40a8b9d707096943a543be6db78 (diff)
downloadscummvm-rg350-fcdebdc015ee2ffb0c2ff1faa20730f4e7c51ce7.tar.gz
scummvm-rg350-fcdebdc015ee2ffb0c2ff1faa20730f4e7c51ce7.tar.bz2
scummvm-rg350-fcdebdc015ee2ffb0c2ff1faa20730f4e7c51ce7.zip
JANITORIAL: Whitespace fixes
Diffstat (limited to 'engines/hdb')
-rw-r--r--engines/hdb/hdb.cpp6
-rw-r--r--engines/hdb/lua-script.cpp12
-rw-r--r--engines/hdb/lua-script.h2
3 files changed, 10 insertions, 10 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp
index 15263f3ff8..89186d0217 100644
--- a/engines/hdb/hdb.cpp
+++ b/engines/hdb/hdb.cpp
@@ -119,8 +119,8 @@ Common::Error HDBGame::run() {
Graphics::PixelFormat format(2, 5, 6, 5, 0, 11, 5, 0, 0);
initGraphics(640, 480, &format);
_console = new Console();
-
-
+
+
Common::SeekableReadStream *titleStream = fileMan->findFirstData("monkeylogoscreen", TYPE_PIC);
if (titleStream == NULL) {
debug("The TitleScreen MPC entry can't be found.");
@@ -147,7 +147,7 @@ Common::Error HDBGame::run() {
}
lua->initScript(luaStream, luaLength);
-
+
while (!shouldQuit()) {
Common::Event event;
diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp
index dd6c8b0f17..ed22b712f8 100644
--- a/engines/hdb/lua-script.cpp
+++ b/engines/hdb/lua-script.cpp
@@ -625,17 +625,17 @@ bool LuaScript::initScript(Common::SeekableReadStream *stream, int32 length) {
error("LuaScript::initScript: 'global code' failed to execute");
return false;
}
-
+
// Load script and execute it
if (!executeMPC(stream, "level code", length)) {
error("LuaScript::initScript: 'level code' failed to execute");
return false;
}
-
+
lua_getglobal(_state, "level_init");
lua_pcall(_state, 0, 0, 0);
-
+
return true;
}
@@ -656,7 +656,7 @@ bool LuaScript::executeMPC(Common::SeekableReadStream *stream, const char *name,
if (!executeChunk(chunk, length, name)) {
delete[] chunk;
-
+
return false;
}
@@ -667,7 +667,7 @@ bool LuaScript::executeMPC(Common::SeekableReadStream *stream, const char *name,
#if 0
bool LuaScript::executeFile(const Common::String &filename) {
-
+
if (!_systemInit) {
return false;
}
@@ -756,7 +756,7 @@ bool LuaScript::executeChunk(const char *chunk, uint chunkSize, const Common::St
if (lua_pcall(_state, 0, 0, 0)) {
error("An error occured while executing \"%s\": %s.", chunkName.c_str(), lua_tostring(_state, -1));
lua_pop(_state, -1);
-
+
return false;
}
diff --git a/engines/hdb/lua-script.h b/engines/hdb/lua-script.h
index ec7213315e..5ad9d2c409 100644
--- a/engines/hdb/lua-script.h
+++ b/engines/hdb/lua-script.h
@@ -51,7 +51,7 @@ private:
bool registerExtensions();
bool executeChunk(const char *chunk, uint chunkSize, const Common::String &chunkName) const;
void sanitizeScript(char *chunk);
-
+
};
}