aboutsummaryrefslogtreecommitdiff
path: root/queen/cutaway.h
diff options
context:
space:
mode:
authorGregory Montoir2004-08-24 16:31:46 +0000
committerGregory Montoir2004-08-24 16:31:46 +0000
commit45d8b3b00291b6dcdae4d4966021ded316c2cfae (patch)
treed7de6814592f453b7e27fe679ad676b0c1023c1a /queen/cutaway.h
parent649e9b71a5837b10573fcfcb11497497827e35a8 (diff)
downloadscummvm-rg350-45d8b3b00291b6dcdae4d4966021ded316c2cfae.tar.gz
scummvm-rg350-45d8b3b00291b6dcdae4d4966021ded316c2cfae.tar.bz2
scummvm-rg350-45d8b3b00291b6dcdae4d4966021ded316c2cfae.zip
Rewrote the way strings are extracting from the datafiles, now it should be 'alignment safe'. Maybe it will fix bugs #923570 and #1013886, too.
svn-id: r14734
Diffstat (limited to 'queen/cutaway.h')
-rw-r--r--queen/cutaway.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/queen/cutaway.h b/queen/cutaway.h
index 68411a63d9..29e21df03a 100644
--- a/queen/cutaway.h
+++ b/queen/cutaway.h
@@ -142,7 +142,7 @@ class Cutaway {
byte *_objectData;
//! Pointer to next sentence string in _fileData
- byte *_nextSentence;
+ uint16 _nextSentenceOff;
//! ???
bool _roomFade;
@@ -205,10 +205,10 @@ class Cutaway {
void load(const char *filename);
//! Used by load to read string data
- void loadStrings(byte *ptr);
+ void loadStrings(uint16 offset);
//! Get persons
- byte *turnOnPeople(byte *ptr, CutawayObject &object);
+ const byte *turnOnPeople(const byte *ptr, CutawayObject &object);
//! Limit the BOB
void limitBob(CutawayObject &object);
@@ -220,7 +220,7 @@ class Cutaway {
ObjectType getObjectType(CutawayObject &object);
//! Perform actions for an animation
- byte *handleAnimation(byte *ptr, CutawayObject &object);
+ const byte *handleAnimation(const byte *ptr, CutawayObject &object);
//! Perform actions for a person record
void handlePersonRecord(
@@ -248,13 +248,13 @@ class Cutaway {
void talk(char *nextFilename);
//! Get CutawayAnim data from ptr and return new ptr
- byte *getCutawayAnim(byte *ptr, int header, CutawayAnim &anim);
+ const byte *getCutawayAnim(const byte *ptr, int header, CutawayAnim &anim);
//! Special animation
int makeComplexAnimation(int16 currentImage, CutawayAnim *objAnim, int frameCount);
//! Read a CutawayObject from ptr and return new ptr
- static byte *getCutawayObject(byte *ptr, CutawayObject &object);
+ static const byte *getCutawayObject(const byte *ptr, CutawayObject &object);
//! Dump a CutawayObject with debug()
void dumpCutawayObject(int index, CutawayObject &object);