Skip to content

Commit

Permalink
WAGE: Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
StableSteady committed Aug 2, 2022
1 parent 11908d8 commit f308aeb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engines/wage/entities.cpp
Expand Up @@ -159,11 +159,13 @@ void Scene::paint(Graphics::ManagedSurface *surface, int x, int y) {
Designed *Scene::lookUpEntity(int x, int y) {
for (ObjList::const_iterator it = _objs.end(); it != _objs.begin(); ) {
it--;
// WORKAROUND: Some games draw objects on a different surface
if (((*it)->_name == "continue" && (*it)->_resourceId == 22259) ||
((*it)->_name == "Goth" && (*it)->_resourceId == 18623))
if (_design->isPointOpaque(x, y))
return *it;

// WORKAROUND: Twister needs special check to handle intro sequence
if ((*it)->_name == "TWIST.CLICK")
return *it;
if ((*it)->_design->isPointOpaque(x, y))
Expand Down
1 change: 1 addition & 0 deletions engines/wage/util.cpp
Expand Up @@ -53,6 +53,7 @@ namespace Wage {
Common::Rect *readRect(Common::SeekableReadStream *in) {
int x1, y1, x2, y2;

// Account for the extra two pixels because of the squares on the border
y1 = in->readSint16BE() - 2;
x1 = in->readSint16BE() - 2;
y2 = in->readSint16BE() + 2;
Expand Down
1 change: 1 addition & 0 deletions engines/wage/world.cpp
Expand Up @@ -215,6 +215,7 @@ bool World::loadWorld(Common::MacResManager *resMan) {
if (res != NULL) {
scene->_textBounds = readRect(res);
int fontType = res->readUint16BE();
// WORKAROUND: Dune Eternity has a weird fontType ID so we override it to the correct one
if (_name == "***DUNE ETERNITY*** ")
fontType = 3;

Expand Down

0 comments on commit f308aeb

Please sign in to comment.