Add / remove warning

svn-id: r7996
This commit is contained in:
Travis Howell 2003-05-26 10:21:22 +00:00
parent b959d9d64e
commit 4ca99c1c89
2 changed files with 5 additions and 3 deletions

View file

@ -100,9 +100,10 @@ void SimonState::render_string(uint num_1, uint color, uint width, uint height,
if (_game == GAME_SIMON1AMIGA) {
// FIXME Really bad hack to allow simon1amiga to work for now
// simon1amiga needs to be decoded a different way
warning("img_height is %d and img_width is %d", img_height, img_width);
img_height = 9;
img_width = 7;
if (img_width < 1 || img_width > 49)
img_width = 7;
if (img_height < 1 || img_height > 49)
img_height = 9;
}
assert(img_width > 0 && img_width < 50 && img_height > 0 && img_height < 50);