From 337f057fd4d1b94db4d38819273cfc98fbccfd93 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Tue, 18 Jun 2019 19:54:00 +0530 Subject: [PATCH] HDB: Fix type cast formatting errors --- engines/hdb/ai.cpp | 2 +- engines/hdb/draw-manager.cpp | 2 +- engines/hdb/lua-script.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/hdb/ai.cpp b/engines/hdb/ai.cpp index f0c73f0f207..1de95be9e72 100644 --- a/engines/hdb/ai.cpp +++ b/engines/hdb/ai.cpp @@ -106,7 +106,7 @@ void AI::processCines() { break; case C_FADEIN: if (!(*it)->start) { - g_hdb->_drawMan->setFade(true, (bool) (*it)->end, (*it)->speed); + g_hdb->_drawMan->setFade(true, (bool)(*it)->end, (*it)->speed); (*it)->start = 1; } else if (!g_hdb->_drawMan->isFadeActive()) { complete = true; diff --git a/engines/hdb/draw-manager.cpp b/engines/hdb/draw-manager.cpp index 4b48acb2b14..a5559a27363 100644 --- a/engines/hdb/draw-manager.cpp +++ b/engines/hdb/draw-manager.cpp @@ -281,7 +281,7 @@ Graphics::Surface Picture::load(Common::SeekableReadStream *stream) { uint16 *ptr; for (uint y = 0; y < _height; y++) { - ptr = (uint16 *) _surface.getBasePtr(0, y); + ptr = (uint16 *)_surface.getBasePtr(0, y); for (uint x = 0; x < _width; x++) { *ptr = TO_LE_16(stream->readUint16LE()); ptr++; diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp index 90aadd8aa9f..fe83d17c942 100644 --- a/engines/hdb/lua-script.cpp +++ b/engines/hdb/lua-script.cpp @@ -70,7 +70,7 @@ bool LuaScript::init() { static int cineStart(lua_State *L) { double abortable = lua_tonumber(L, 1); - char *abortFunc = (char *) lua_tostring(L, 2); + char *abortFunc = (char *)lua_tostring(L, 2); g_hdb->_lua->checkParameters("cineStart", 2);