HDB: Fix warnings

This commit is contained in:
Eugene Sandulenko 2019-08-27 01:19:21 +02:00
parent 373002d303
commit 100ea9ff0e
3 changed files with 5 additions and 4 deletions

View File

@ -381,7 +381,6 @@ void Gfx::updateFade() {
uint8 r, g, b;
uint16 value;
uint16 *ptr;
static int waitAFrame = 0;
if (!_fadeInfo.active && !_fadeInfo.stayFaded)
return;
@ -445,6 +444,8 @@ void Gfx::updateFade() {
} else {
_fadeBuffer2.blitFrom(_globalSurface);
static int waitAFrame = 0;
do {
// Copy pristine copy of background to modification buffer
_fadeBuffer1.blitFrom(_fadeBuffer2);

View File

@ -949,7 +949,7 @@ Common::Error HDBGame::run() {
strcpy(mapname, "CINE_OUTRO");
if (isDemo())
strncat(mapname, "_DEMO", 20);
strcat(mapname, "_DEMO");
debug("Starting level %s in %s", mapname, getActionMode() ? "Action Mode" : "Puzzle Mode");

View File

@ -474,8 +474,8 @@ void Window::loadSaveFile(Common::InSaveFile *in) {
in->read(t->text, 128);
t->x = in->readSint32LE();
t->y = in->readSint32LE();
t->timer = in->readUint32LE();
t->timer = g_system->getMillis() + 1000;
(void)in->readUint32LE(); // Skip timer value
t->timer = g_system->getMillis() + 1000; // And override it to a second
_textOutList.push_back(t);
}