Skip to content

Commit

Permalink
GOT: Further x64 warning fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster authored and bluegr committed Jan 12, 2025
1 parent b3564a1 commit 860070f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
5 changes: 4 additions & 1 deletion engines/got/game/special_tile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,10 @@ int special_tile_thor(int x, int y, int icon) {
return 0;
case 218:
case 219:
// Hole tiles
f = 1;
case 220: // Hole tiles
// fall through
case 220:
case 221:
case 222:
case 223:
Expand All @@ -162,6 +164,7 @@ int special_tile_thor(int x, int y, int icon) {
case 227:
case 228:
case 229:
// Hole tiles
cx = (_G(thor_x1) + 7) / 16;
cy = (_G(thor_real_y1) + 8) / 16;
if (_G(scrn).icon[cy][cx] == icon) {
Expand Down
2 changes: 1 addition & 1 deletion engines/got/gfx/font.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ void Font::drawString(Graphics::ManagedSurface *src, const Common::Point &pos,
} else {
ch = toupper(ch) - 55;
}
color = DIALOG_COLOR[ch];
color = DIALOG_COLOR[(byte)ch];
continue;
}
if (ch > 31 && ch < 127)
Expand Down
2 changes: 0 additions & 2 deletions engines/got/utils/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@

namespace Got {

static const char *gotres = "GOTRES.00";

bool File::open(const Common::Path &filename) {
if (!Common::File::open(filename))
error("Could not open - %s", filename.baseName().c_str());
Expand Down
2 changes: 1 addition & 1 deletion engines/got/views/credits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void Credits::draw() {
GfxSurface s = getSurface();

// Draw scroll background
Graphics::ManagedSurface bg = _G(gfx)[42];
const Graphics::ManagedSurface &bg = _G(gfx)[42];
s.clear(*(byte *)bg.getPixels());
s.simpleBlitFrom(bg, Common::Point(0, 24));

Expand Down
2 changes: 0 additions & 2 deletions engines/got/views/dialogs/say.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ namespace Got {
namespace Views {
namespace Dialogs {

#define _HRZSP 24

Say::Say() : Dialog("Say") {
setBounds(Common::Rect(32, 48, 288, 160));
}
Expand Down
2 changes: 1 addition & 1 deletion engines/got/views/game_status.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void GameStatus::displayJewels(GfxSurface &s) {
}

void GameStatus::displayScore(GfxSurface &s) {
Common::String str = Common::String::format("%d", _G(thor_info).score);
Common::String str = Common::String::format("%ld", _G(thor_info).score);
int x = 276 - (str.size() * 8);

s.fillRect(Common::Rect(223, 32, 279, 42), STAT_COLOR);
Expand Down

0 comments on commit 860070f

Please sign in to comment.