aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/agi.h
diff options
context:
space:
mode:
authorKari Salminen2008-01-03 08:41:40 +0000
committerKari Salminen2008-01-03 08:41:40 +0000
commit0ddfc0a64ea457cc65df92d8e359a900a0bfed6a (patch)
tree507730ce5344e2a92b74b0be2dcc495d65b13cda /engines/agi/agi.h
parent967e56996a429dcbde6e70bec842c3f87df258fd (diff)
downloadscummvm-rg350-0ddfc0a64ea457cc65df92d8e359a900a0bfed6a.tar.gz
scummvm-rg350-0ddfc0a64ea457cc65df92d8e359a900a0bfed6a.tar.bz2
scummvm-rg350-0ddfc0a64ea457cc65df92d8e359a900a0bfed6a.zip
Fix for the Space Trek sprite duplication bug (#1659209). Makes commands position and position.v use coordinate clipping for Space Trek.
svn-id: r30190
Diffstat (limited to 'engines/agi/agi.h')
-rw-r--r--engines/agi/agi.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/agi/agi.h b/engines/agi/agi.h
index d5959382ef..7aa218d0fa 100644
--- a/engines/agi/agi.h
+++ b/engines/agi/agi.h
@@ -130,6 +130,9 @@ enum AgiGameType {
/*
* GF_OLDAMIGAV20 means that the interpreter is an old Amiga AGI interpreter that
* uses value 20 for the computer type (v20 i.e. vComputer) rather than the usual value 5.
+ *
+ * GF_CLIPCOORDS means that views' coordinates must be clipped at least in commands
+ * position and position.v.
*/
enum AgiGameFeatures {
GF_AGIMOUSE = (1 << 0),
@@ -141,7 +144,8 @@ enum AgiGameFeatures {
GF_FANMADE = (1 << 6),
GF_MENUS = (1 << 7),
GF_ESCPAUSE = (1 << 8),
- GF_OLDAMIGAV20 = (1 << 9)
+ GF_OLDAMIGAV20 = (1 << 9),
+ GF_CLIPCOORDS = (1 << 10)
};
struct AGIGameDescription;
@@ -873,6 +877,7 @@ private:
public:
void setCel(VtEntry *, int);
+ void clipViewCoordinates(VtEntry *v);
void setLoop(VtEntry *, int);
void setView(VtEntry *, int);
void startUpdate(VtEntry *);