mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 07:53:36 +00:00
Change asserts to warnings to now, due to code differences in Amiga versions of Simon the Sorcerer.
svn-id: r25522
This commit is contained in:
parent
82e4318b02
commit
6654a91ae2
@ -958,7 +958,11 @@ void AGOSEngine::animate(uint windowNum, uint zoneNum, uint vgaSpriteId, uint x,
|
||||
break;
|
||||
p += sizeof(AnimationHeader_Simon);
|
||||
}
|
||||
assert(READ_BE_UINT16(&((AnimationHeader_Simon *) p)->id) == vgaSpriteId);
|
||||
|
||||
if (READ_BE_UINT16(&((AnimationHeader_Simon *) p)->id) != vgaSpriteId) {
|
||||
debug(0, "setImage: Animation %d not found.", vgaSpriteId);
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
p = pp + READ_BE_UINT16(pp + 10);
|
||||
p += 20;
|
||||
@ -1068,7 +1072,12 @@ void AGOSEngine::setImage(uint16 vga_res_id, bool vgaScript) {
|
||||
break;
|
||||
b += sizeof(ImageHeader_Simon);
|
||||
}
|
||||
assert(READ_BE_UINT16(&((ImageHeader_Simon *) b)->id) == vga_res_id);
|
||||
|
||||
|
||||
if (READ_BE_UINT16(&((ImageHeader_Simon *) b)->id) != vga_res_id) {
|
||||
debug(0, "setImage: Image %d not found.", vga_res_id);
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
b = bb + READ_BE_UINT16(bb + 10);
|
||||
b += 20;
|
||||
|
Loading…
x
Reference in New Issue
Block a user