HDB: Fix type cast formatting errors

This commit is contained in:
Nipun Garg 2019-06-18 19:54:00 +05:30 committed by Eugene Sandulenko
parent 64760a08bb
commit 337f057fd4
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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++;

View File

@ -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);