aboutsummaryrefslogtreecommitdiff
path: root/saga
diff options
context:
space:
mode:
authorEugene Sandulenko2005-07-30 21:11:48 +0000
committerEugene Sandulenko2005-07-30 21:11:48 +0000
commit6b4484472b79dc7ea7d1ce545a28fba7d3b7696f (patch)
treec44c4e61f18ddd537f7082cb48869cf33d422fbd /saga
parent86ab70b149e5cd00cf54f2e41896e2c4e16795e4 (diff)
downloadscummvm-rg350-6b4484472b79dc7ea7d1ce545a28fba7d3b7696f.tar.gz
scummvm-rg350-6b4484472b79dc7ea7d1ce545a28fba7d3b7696f.tar.bz2
scummvm-rg350-6b4484472b79dc7ea7d1ce545a28fba7d3b7696f.zip
Remove trailing whitespaces.
svn-id: r18604
Diffstat (limited to 'saga')
-rw-r--r--saga/actor.h68
-rw-r--r--saga/animation.h4
-rw-r--r--saga/console.h2
-rw-r--r--saga/events.h4
-rw-r--r--saga/font.h8
-rw-r--r--saga/gfx.h4
-rw-r--r--saga/interface.h18
-rw-r--r--saga/isomap.h16
-rw-r--r--saga/list.h10
-rw-r--r--saga/objectmap.h6
-rw-r--r--saga/puzzle.h2
-rw-r--r--saga/rscfile.h4
-rw-r--r--saga/saga.h26
-rw-r--r--saga/scene.h2
-rw-r--r--saga/script.h32
-rw-r--r--saga/sndres.h2
-rw-r--r--saga/sound.h2
-rw-r--r--saga/sprite.h6
-rw-r--r--saga/sthread.cpp2
19 files changed, 109 insertions, 109 deletions
diff --git a/saga/actor.h b/saga/actor.h
index e90272b718..4a18f6552e 100644
--- a/saga/actor.h
+++ b/saga/actor.h
@@ -123,7 +123,7 @@ enum ActorFlagsEx {
enum PathCellType {
kPathCellEmpty = -1,
- //kDirUp = 0 .... kDirUpLeft = 7
+ //kDirUp = 0 .... kDirUpLeft = 7
kPathCellBarrier = 0x57
};
@@ -162,8 +162,8 @@ int pathLine(Point *pointList, const Point &point1, const Point &point2);
struct Location {
int32 x; // logical coordinates
- int32 y; //
- int32 z; //
+ int32 y; //
+ int32 z; //
Location() {
x = y = z = 0;
}
@@ -232,7 +232,7 @@ struct Location {
class CommonObjectData {
public:
//constant
- bool disabled; // disabled in init section
+ bool disabled; // disabled in init section
int32 index; // index in local array
uint16 id; // object id
int32 scriptEntrypointNumber; // script entrypoint number
@@ -276,12 +276,12 @@ typedef CommonObjectData *CommonObjectDataPointer;
typedef SortedList<CommonObjectDataPointer> CommonObjectOrderList;
-class ObjectData: public CommonObjectData {
+class ObjectData: public CommonObjectData {
public:
//constant
uint16 interactBits;
ObjectData() {
- memset(this, 0, sizeof(*this));
+ memset(this, 0, sizeof(*this));
}
};
@@ -306,7 +306,7 @@ public:
int32 actionCycle;
uint16 targetObject;
const HitZone *lastZone;
-
+
int32 cycleFrameSequence;
uint8 cycleDelay;
uint8 cycleTimeCount;
@@ -321,7 +321,7 @@ public:
uint8 dragonMoveType;
int32 frameNumber; // current frame number
-
+
int32 tileDirectionsAlloced;
byte *tileDirections;
@@ -349,12 +349,12 @@ public:
out->writeByte(cycleDelay);
out->writeByte(cycleTimeCount);
out->writeByte(cycleFlags);
- out->writeSint16LE(fallVelocity);
- out->writeSint16LE(fallAcceleration);
- out->writeSint16LE(fallPosition);
- out->writeByte(dragonBaseFrame);
- out->writeByte(dragonStepCycle);
- out->writeByte(dragonMoveType);
+ out->writeSint16LE(fallVelocity);
+ out->writeSint16LE(fallAcceleration);
+ out->writeSint16LE(fallPosition);
+ out->writeByte(dragonBaseFrame);
+ out->writeByte(dragonStepCycle);
+ out->writeByte(dragonMoveType);
out->writeSint32LE(frameNumber);
out->writeSint32LE(tileDirectionsAlloced);
@@ -391,23 +391,23 @@ public:
cycleTimeCount = in->readByte();
cycleFlags = in->readByte();
if (version > 1) {
- fallVelocity = in->readSint16LE();
- fallAcceleration = in->readSint16LE();
- fallPosition = in->readSint16LE();
+ fallVelocity = in->readSint16LE();
+ fallAcceleration = in->readSint16LE();
+ fallPosition = in->readSint16LE();
} else {
fallVelocity = fallAcceleration = fallPosition = 0;
}
if (version > 2) {
- dragonBaseFrame = in->readByte();
- dragonStepCycle = in->readByte();
- dragonMoveType = in->readByte();
+ dragonBaseFrame = in->readByte();
+ dragonStepCycle = in->readByte();
+ dragonMoveType = in->readByte();
} else {
dragonBaseFrame = dragonStepCycle = dragonMoveType = 0;
}
frameNumber = in->readSint32LE();
-
+
setTileDirectionsSize(in->readSint32LE(), true);
for (i = 0; i < tileDirectionsAlloced; i++) {
tileDirections[i] = in->readByte();
@@ -444,7 +444,7 @@ public:
return;
}
walkStepsAlloced = size;
- walkStepsPoints = (Point*)realloc(walkStepsPoints, walkStepsAlloced * sizeof(*walkStepsPoints));
+ walkStepsPoints = (Point*)realloc(walkStepsPoints, walkStepsAlloced * sizeof(*walkStepsPoints));
}
void addWalkStepPoint(const Point &point) {
@@ -453,7 +453,7 @@ public:
}
ActorData() {
- memset(this, 0, sizeof(*this));
+ memset(this, 0, sizeof(*this));
}
~ActorData() {
free(frames);
@@ -480,8 +480,8 @@ struct SpeechData {
bool playing;
int playingTime;
- SpeechData() {
- memset(this, 0, sizeof(*this));
+ SpeechData() {
+ memset(this, 0, sizeof(*this));
}
FontEffectFlags getFontFlags(int i) {
@@ -509,14 +509,14 @@ public:
int actorIdToIndex(uint16 id) { return (id == ID_PROTAG ) ? 0 : objectIdToIndex(id); }
uint16 actorIndexToId(int index) { return (index == 0 ) ? ID_PROTAG : objectIndexToId(kGameObjectActor, index); }
ActorData *getActor(uint16 actorId);
-
+
// clarification: Obj - means game object, such Hat, Spoon etc, Object - means Actor,Obj,HitZone,StepZone
bool validObjId(uint16 id) { return (id >= objectIndexToId(kGameObjectObject, 0)) && (id < objectIndexToId(kGameObjectObject, _objsCount)); }
int objIdToIndex(uint16 id) { return objectIdToIndex(id); }
uint16 objIndexToId(int index) { return objectIndexToId(kGameObjectObject, index); }
ObjectData *getObj(uint16 objId);
-
+
int getObjectScriptEntrypointNumber(uint16 id) {
int objectType;
objectType = objectTypeId(id);
@@ -545,14 +545,14 @@ public:
uint16 hitTest(const Point &testPoint, bool skipProtagonist);
void takeExit(uint16 actorId, const HitZone *hitZone);
bool actorEndWalk(uint16 actorId, bool recurse);
- bool actorWalkTo(uint16 actorId, const Location &toLocation);
+ bool actorWalkTo(uint16 actorId, const Location &toLocation);
ActorFrameRange *getActorFrameRange(uint16 actorId, int frameType);
void actorFaceTowardsPoint(uint16 actorId, const Location &toLocation);
void actorFaceTowardsObject(uint16 actorId, uint16 objectId);
void realLocation(Location &location, uint16 objectId, uint16 walkFlags);
-// speech
+// speech
void actorSpeech(uint16 actorId, const char **strings, int stringsCount, int sampleResourceId, int speechFlags);
void nonActorSpeech(const Common::Rect &box, const char **strings, int stringsCount, int sampleResourceId, int speechFlags);
void simulSpeech(const char *string, uint16 *actorIds, int actorIdsCount, int speechFlags, int sampleResourceId);
@@ -571,7 +571,7 @@ public:
void setProtagState(int state);
int getProtagState() { return _protagState; }
-
+
private:
bool loadActorResources(ActorData *actor);
void stepZoneAction(ActorData *actor, const HitZone *hitZone, bool exit, bool stopped);
@@ -588,7 +588,7 @@ private:
return !((testPoint.x < 0) || (testPoint.x >= _xCellCount) ||
(testPoint.y < 0) || (testPoint.y >= _yCellCount));
}
- void setPathCell(const Point &testPoint, int8 value) {
+ void setPathCell(const Point &testPoint, int8 value) {
if (!validPathCellPoint(testPoint)) {
error("Actor::setPathCell wrong point");
}
@@ -610,8 +610,8 @@ private:
void removePathPoints();
bool validFollowerLocation(const Location &location);
void moveDragon(ActorData *actor);
-
-
+
+
protected:
//constants
int _actorsCount;
@@ -671,7 +671,7 @@ private:
if (_pathListIndex >= _pathListAlloced) {
_pathListAlloced += 100;
_pathList = (Point*) realloc(_pathList, _pathListAlloced * sizeof(*_pathList));
-
+
}
_pathList[_pathListIndex] = point;
}
diff --git a/saga/animation.h b/saga/animation.h
index ca42be0cab..25b24fcfa0 100644
--- a/saga/animation.h
+++ b/saga/animation.h
@@ -75,7 +75,7 @@ struct AnimationData {
uint16 completed;
uint16 cycles;
-
+
int frameTime;
AnimationState state;
@@ -83,7 +83,7 @@ struct AnimationData {
uint16 flags;
AnimationData(const byte *animResourceData, size_t animResourceLength) {
- memset(this, 0, sizeof(*this));
+ memset(this, 0, sizeof(*this));
resourceLength = animResourceLength;
resourceData = (byte*)malloc(animResourceLength);
memcpy(resourceData, animResourceData, animResourceLength);
diff --git a/saga/console.h b/saga/console.h
index 4870cb1c89..ea1f612e05 100644
--- a/saga/console.h
+++ b/saga/console.h
@@ -50,7 +50,7 @@ private:
bool cmdSceneChange(int argc, const char **argv);
bool cmdActionMapInfo(int argc, const char **argv);
bool cmdObjectMapInfo(int argc, const char **argv);
-
+
private:
SagaEngine *_vm;
diff --git a/saga/events.h b/saga/events.h
index 64f666c6bc..d2ef62e78e 100644
--- a/saga/events.h
+++ b/saga/events.h
@@ -117,7 +117,7 @@ enum EVENT_PARAMS {
struct EVENT {
unsigned int type;
- unsigned int code; // Event operation category & flags
+ unsigned int code; // Event operation category & flags
int op; // Event operation
long param; // Optional event parameter
long param2;
@@ -132,7 +132,7 @@ struct EVENT {
EVENT *chain; // Event chain (For consecutive events)
EVENT() {
- memset(this, 0, sizeof(*this));
+ memset(this, 0, sizeof(*this));
}
};
diff --git a/saga/font.h b/saga/font.h
index 70a15ee451..df0137ed04 100644
--- a/saga/font.h
+++ b/saga/font.h
@@ -33,14 +33,14 @@ namespace Saga {
#define FONT_SHOWUNDEFINED 1 // Define to draw undefined characters * as ?'s
-// The first defined character (!) is the only one that may
+// The first defined character (!) is the only one that may
// have a valid offset of '0'
#define FONT_FIRSTCHAR 33
#define FONT_CH_SPACE 32
#define FONT_CH_QMARK 63
-// Minimum font header size without font data
+// Minimum font header size without font data
// (6 + 512 + 256 + 256 + 256 )
#define FONT_DESCSIZE 1286
@@ -64,7 +64,7 @@ struct TextListEntry {
FontId fontId;
const char *text;
TextListEntry() {
- memset(this, 0, sizeof(*this));
+ memset(this, 0, sizeof(*this));
}
};
@@ -112,7 +112,7 @@ class Font {
void textDraw(FontId fontId, Surface *ds, const char *string, const Common::Point &point, int color, int effectColor, FontEffectFlags flags);
void textDrawRect(FontId fontId, Surface *ds, const char *text, const Common::Rect &rect, int color, int effectColor, FontEffectFlags flags);
-
+
void validate(FontId fontId) {
if ((fontId < 0) || (fontId >= _loadedFonts)) {
error("Font::validate: Invalid font id.");
diff --git a/saga/gfx.h b/saga/gfx.h
index aa47bf5da6..e9af30ca2a 100644
--- a/saga/gfx.h
+++ b/saga/gfx.h
@@ -89,7 +89,7 @@ struct Color {
};
struct Surface : Graphics::Surface {
-
+
void transitionDissolve(const byte *sourceBuffer, const Common::Rect &sourceRect, int flags, double percent);
void drawPalette();
void drawPolyLine(const Point *points, int count, int color);
@@ -110,7 +110,7 @@ struct Surface : Graphics::Surface {
if (rect.isValidRect()) {
fillRect(rect, color);
- }
+ }
}
};
diff --git a/saga/interface.h b/saga/interface.h
index f931c3c959..d46e20138a 100644
--- a/saga/interface.h
+++ b/saga/interface.h
@@ -86,12 +86,12 @@ struct InterfacePanel {
size_t imageLength;
int imageWidth;
int imageHeight;
-
+
PanelButton *currentButton;
int buttonsCount;
PanelButton *buttons;
SpriteList sprites;
-
+
InterfacePanel() {
x = y = 0;
image = NULL;
@@ -108,14 +108,14 @@ struct InterfacePanel {
}
return NULL;
}
-
+
void getRect(Rect &rect) {
rect.left = x;
rect.top = y;
rect.setWidth(imageWidth);
rect.setHeight(imageHeight);
}
-
+
void calcPanelButtonRect(const PanelButton* panelButton, Rect &rect) {
rect.left = x + panelButton->xOffset;
rect.right = rect.left + panelButton->width;
@@ -232,7 +232,7 @@ public:
void processKeyUp(uint16 ascii);
bool _textInput;
-
+
bool _statusTextInput;
StatusTextInputState _statusTextInputState;
char _statusTextInputString[STATUS_TEXT_INPUT_MAX];
@@ -266,7 +266,7 @@ public:
}
return _inventory[cell];
}
-
+
PanelButton *inventoryHitTest(const Point& mousePoint) {
return _mainPanel.hitTest(mousePoint, kPanelButtonInventory);
}
@@ -358,7 +358,7 @@ private:
}
return _verbTypeToPanelButton[verb];
}
-
+
void validateOptionButtons() {
if (!_vm->isSaveListFull() && (_optionSaveFileTitleNumber == 0) && (_optionPanel.currentButton != NULL)) {
if (_optionPanel.currentButton->id == kTextLoad) {
@@ -406,7 +406,7 @@ private:
int _statusOnceColor;
int _leftPortrait;
int _rightPortrait;
-
+
Point _lastMousePoint;
uint16 *_inventory;
@@ -431,7 +431,7 @@ private:
Rect _optionSaveRectTop;
Rect _optionSaveRectSlider;
Rect _optionSaveRectBottom;
-
+
char _textInputString[SAVE_TITLE_SIZE];
uint _textInputStringLength;
uint _textInputPos;
diff --git a/saga/isomap.h b/saga/isomap.h
index 36a034ce77..eb1185a47d 100644
--- a/saga/isomap.h
+++ b/saga/isomap.h
@@ -112,7 +112,7 @@ struct IsoTileData {
};
struct TilePlatformData {
- int16 metaTile;
+ int16 metaTile;
int16 height;
int16 highestPixel;
byte vBits;
@@ -180,8 +180,8 @@ private:
void drawTiles(Surface *ds, const Location *location);
void drawMetaTile(Surface *ds, uint16 metaTileIndex, const Point &point, int16 absU, int16 absV);
void drawSpriteMetaTile(Surface *ds, uint16 metaTileIndex, const Point &point, Location &location, int16 absU, int16 absV);
- void drawPlatform(Surface *ds, uint16 platformIndex, const Point &point, int16 absU, int16 absV, int16 absH);
- void drawSpritePlatform(Surface *ds, uint16 platformIndex, const Point &point, const Location &location, int16 absU, int16 absV, int16 absH);
+ void drawPlatform(Surface *ds, uint16 platformIndex, const Point &point, int16 absU, int16 absV, int16 absH);
+ void drawSpritePlatform(Surface *ds, uint16 platformIndex, const Point &point, const Location &location, int16 absU, int16 absV, int16 absH);
void drawTile(Surface *ds, uint16 tileIndex, const Point &point, const Location *location);
int16 smoothSlide(int16 value, int16 min, int16 max) {
if (value < min) {
@@ -200,7 +200,7 @@ private:
}
}
return value;
- }
+ }
int16 findMulti(int16 tileIndex, int16 absU, int16 absV, int16 absH);
void pushPoint(int16 u, int16 v, uint16 cost, uint16 direction);
void pushDragonPoint(int16 u, int16 v, uint16 direction);
@@ -210,7 +210,7 @@ private:
byte *_tileData;
- size_t _tileDataLength;
+ size_t _tileDataLength;
uint16 _tilesCount;
IsoTileData *_tilesTable;
@@ -218,14 +218,14 @@ private:
TilePlatformData *_tilePlatformList;
uint16 _metaTilesCount;
MetaTileData *_metaTileList;
-
+
uint16 _multiCount;
MultiTileEntryData *_multiTable;
uint16 _multiDataCount;
int16 *_multiTableData;
TileMapData _tileMap;
-
+
Point _mapPosition;
// path finding stuff
@@ -273,7 +273,7 @@ private:
return &cell[u][v];
}
};
-
+
int16 _queueCount;
int16 _readCount;
SearchArray _searchArray;
diff --git a/saga/list.h b/saga/list.h
index 03cc7e5cd4..9c22180c84 100644
--- a/saga/list.h
+++ b/saga/list.h
@@ -84,17 +84,17 @@ public:
}
iterator reorderUp(iterator pos, CompareFunction compareFunction) {
- iterator i(pos);
+ iterator i(pos);
int res;
- --i;
+ --i;
while (i != Common::List<T>::end()) {
res = compareFunction(i.operator*(), pos.operator*());
if (res <= 0) {
T temp(*pos);
erase(pos);
- ++i;
+ ++i;
return insert(i, temp);
}
--i;
@@ -103,9 +103,9 @@ public:
}
iterator reorderDown(iterator pos, CompareFunction compareFunction) {
- iterator i(pos);
+ iterator i(pos);
int res;
-
+
++i;
while (i != Common::List<T>::end()) {
res = compareFunction(i.operator*(), pos.operator*());
diff --git a/saga/objectmap.h b/saga/objectmap.h
index 5fc52b5a3b..2cdf0dcd43 100644
--- a/saga/objectmap.h
+++ b/saga/objectmap.h
@@ -41,7 +41,7 @@ private:
public:
HitZone(MemoryReadStreamEndian *readStream, int index);
~HitZone();
-
+
int getNameIndex() const {
return _nameIndex;
}
@@ -76,11 +76,11 @@ public:
return objectIndexToId(kGameObjectStepZone, _index);
}
bool getSpecialPoint(Point &specialPoint) const;
- void draw(SagaEngine *vm, Surface *ds, int color);
+ void draw(SagaEngine *vm, Surface *ds, int color);
bool hitTest(const Point &testPoint);
private:
- int _flags; // Saga::HitZoneFlags
+ int _flags; // Saga::HitZoneFlags
int _clickAreasCount;
int _rightButtonVerb;
int _nameIndex;
diff --git a/saga/puzzle.h b/saga/puzzle.h
index 430c4d00f2..5f1c2d8766 100644
--- a/saga/puzzle.h
+++ b/saga/puzzle.h
@@ -77,7 +77,7 @@ public:
void movePiece(Point mousePt);
private:
- void initPieceInfo(int i, int16 curX, int16 curY, byte offX, byte offY, int16 trgX,
+ void initPieceInfo(int i, int16 curX, int16 curY, byte offX, byte offY, int16 trgX,
int16 trgY, uint8 flag, uint8 count, Point point0, Point point1,
Point point2, Point point3, Point point4, Point point5);
diff --git a/saga/rscfile.h b/saga/rscfile.h
index aff29a795c..f416ff699d 100644
--- a/saga/rscfile.h
+++ b/saga/rscfile.h
@@ -40,7 +40,7 @@ struct PatchData {
bool _deletePatchFile;
Common::File *_patchFile;
GamePatchDescription *_patchDescription;
-
+
PatchData(GamePatchDescription *patchDescription): _patchDescription(patchDescription), _deletePatchFile(true) {
_patchFile = new Common::File();
}
@@ -131,7 +131,7 @@ private:
SagaEngine *_vm;
ResourceContext *_contexts;
int _contextsCount;
-
+
bool loadContext(ResourceContext *context);
};
diff --git a/saga/saga.h b/saga/saga.h
index 74f962876d..fc9989aaf9 100644
--- a/saga/saga.h
+++ b/saga/saga.h
@@ -102,7 +102,7 @@ enum GameObjectTypes {
enum ScriptTimings {
kScriptTimeTicksPerSecond = (728L/10L),
- kRepeatSpeedTicks = (728L/10L)/3,
+ kRepeatSpeedTicks = (728L/10L)/3,
kNormalFadeDuration = 320, // 64 steps, 5 msec each
kQuickFadeDuration = 64, // 64 steps, 1 msec each
kPuzzleHintTime = 30000000L // 30 secs. used in timer
@@ -128,9 +128,9 @@ enum HitZoneFlags {
// in the specified direction, and the actual specified effect of
// the zone will be delayed until the actor leaves the zone.
kHitZoneAutoWalk = (1 << 2),
-
+
// When set on a hit zone, this causes the character not to walk
- // to the object (but they will look at it).
+ // to the object (but they will look at it).
kHitZoneNoWalk = (1 << 2),
// zone activates only when character stops walking
@@ -148,7 +148,7 @@ enum PanelButtonType {
kPanelButtonArrow = 2,
kPanelButtonConverseText = 4,
kPanelButtonInventory = 8,
-
+
kPanelButtonOption = 0x10,
kPanelButtonOptionSlider = 0x20,
kPanelButtonOptionSaveFiles = 0x40,
@@ -296,7 +296,7 @@ enum GameSoundTypes {
kSoundPCM = 0,
kSoundVOX = 1,
kSoundVOC = 2,
- kSoundWAV = 3
+ kSoundWAV = 3
};
enum GameFeatures {
@@ -378,7 +378,7 @@ struct PanelButton {
struct GameDisplayInfo {
int logicalWidth;
int logicalHeight;
-
+
int pathStartY;
int sceneHeight;
@@ -389,7 +389,7 @@ struct GameDisplayInfo {
int statusTextY;
int statusTextColor;
int statusBGColor;
-
+
int saveReminderXOffset;
int saveReminderYOffset;
int saveReminderWidth;
@@ -547,7 +547,7 @@ public:
}
void fillSaveList();
char *calcSaveFileName(uint slotNumber);
-
+
SaveFileData *getSaveFile(uint idx);
uint getSaveSlotNumber(uint idx);
uint getNewSaveSlotNumber();
@@ -562,7 +562,7 @@ public:
int _soundEnabled;
int _musicEnabled;
-
+
SndRes *_sndRes;
Sound *_sound;
Music *_music;
@@ -619,7 +619,7 @@ public:
private:
Common::String _targetName;
-
+
uint _saveFilesMaxCount;
uint _saveFilesCount;
SaveFileData _saveFiles[MAX_SAVES];
@@ -654,7 +654,7 @@ public:
const GameSoundInfo *getSfxInfo() const { return _gameDescription->sfxInfo; }
const GameSoundInfo *getMusicInfo() const { return _gameDescription->musicInfo; }
- const GameFontDescription *getFontDescription(int index) {
+ const GameFontDescription *getFontDescription(int index) {
assert(index < _gameDescription->fontsCount);
return &_gameDescription->fontDescriptions[index];
}
@@ -670,9 +670,9 @@ public:
const Common::Rect &getDisplayClip() const { return _displayClip;}
int getDisplayWidth() const { return _gameDisplayInfo.logicalWidth; }
int getDisplayHeight() const { return _gameDisplayInfo.logicalHeight;}
- int getSceneHeight() const { return _gameDisplayInfo.sceneHeight; }
+ int getSceneHeight() const { return _gameDisplayInfo.sceneHeight; }
const GameDisplayInfo & getDisplayInfo() { return _gameDisplayInfo; }
-
+
const char *getTextString(int textStringId);
void getExcuseInfo(int verb, const char *&textString, int &soundResourceId);
};
diff --git a/saga/scene.h b/saga/scene.h
index 93732ed1d2..77bc55be31 100644
--- a/saga/scene.h
+++ b/saga/scene.h
@@ -270,7 +270,7 @@ class Scene {
void loadSceneEntryList(const byte* resourcePointer, size_t resourceLength);
void processSceneResources();
-
+
SagaEngine *_vm;
ResourceContext *_sceneContext;
diff --git a/saga/script.h b/saga/script.h
index 91d1898e7c..5a5098ffa7 100644
--- a/saga/script.h
+++ b/saga/script.h
@@ -153,14 +153,14 @@ enum OpCodes {
opMul = 0x2E,
opDiv = 0x2F,
opMod = 0x30,
-//...
+//...
opEq = 0x33,
opNe = 0x34,
opGt = 0x35,
opLt = 0x36,
opGe = 0x37,
opLe = 0x38,
-//...
+//...
opRsh = 0x3F,
opLsh = 0x40,
opAnd = 0x41,
@@ -232,7 +232,7 @@ struct ModuleData {
voiceLUT.freeMem();
free(moduleBase);
free(entryPoints);
- memset(this, 0x0, sizeof(*this));
+ memset(this, 0x0, sizeof(*this));
}
};
@@ -240,7 +240,7 @@ class ScriptThread {
public:
uint16 *_stackBuf;
uint16 _stackSize; // stack size in uint16
-
+
uint16 _stackTopIndex;
uint16 _frameIndex;
@@ -249,8 +249,8 @@ public:
byte *_moduleBase; //
uint16 _moduleBaseSize;
- byte *_commonBase; //
- byte *_staticBase; //
+ byte *_commonBase; //
+ byte *_staticBase; //
VoiceLUT *_voiceLUT; //
StringsTable *_strings; //
@@ -304,7 +304,7 @@ public:
}
return (int16)_stackBuf[_stackTopIndex++];
}
-
+
// wait stuff
void wait(int waitType) {
@@ -323,7 +323,7 @@ public:
}
ScriptThread() {
- memset(this, 0xFE, sizeof(*this));
+ memset(this, 0xFE, sizeof(*this));
_stackBuf = NULL;
}
~ScriptThread() {
@@ -342,7 +342,7 @@ public:
Script(SagaEngine *vm);
~Script();
-
+
void loadModule(int scriptModuleNumber);
void freeModules();
@@ -356,7 +356,7 @@ public:
void whichObject(const Point& mousePoint);
void hitObject(bool leftButton);
void playfieldClick(const Point& mousePoint, bool leftButton);
-
+
void setLeftButtonVerb(int verb);
int getLeftButtonVerb() const { return _leftButtonVerb; }
void setRightButtonVerb(int verb);
@@ -371,12 +371,12 @@ public:
_currentObject[0] = _currentObject[0] = ID_NOTHING;
setPointerVerb();
}
-
+
private:
SagaEngine *_vm;
bool _voiceLUTPresent;
ResourceContext *_scriptContext;
-
+
uint16 _modulesLUTEntryLen;
ModuleData *_modules;
int _modulesCount;
@@ -391,10 +391,10 @@ private:
uint _staticSize;
ScriptThreadList _threadList;
-
+
ScriptThread *_conversingThread;
-//verb
+//verb
bool _firstObjectSet;
bool _secondObjectNeeded;
uint16 _currentObject[2];
@@ -404,10 +404,10 @@ private:
int _leftButtonVerb;
int _rightButtonVerb;
-public:
+public:
uint16 _pendingObject[2];
int _pendingVerb;
- uint16 _pointerObject;
+ uint16 _pointerObject;
bool _skipSpeeches;
bool _abortEnabled;
diff --git a/saga/sndres.h b/saga/sndres.h
index feb822ddd6..0a7c3c129c 100644
--- a/saga/sndres.h
+++ b/saga/sndres.h
@@ -44,7 +44,7 @@ public:
bool load(ResourceContext *context, uint32 resourceId, SoundBuffer &buffer, bool onlyHeader);
bool loadVocSound(byte *soundResource, size_t soundResourceLength, SoundBuffer &buffer);
bool loadWavSound(byte *soundResource, size_t soundResourceLength, SoundBuffer &buffer);
-
+
ResourceContext *_sfxContext;
ResourceContext *_voiceContext;
diff --git a/saga/sound.h b/saga/sound.h
index 33c22dace3..78e9317dd3 100644
--- a/saga/sound.h
+++ b/saga/sound.h
@@ -39,7 +39,7 @@ struct SoundBuffer {
int sampleBits;
bool stereo;
bool isSigned;
-
+
byte *buffer;
size_t size;
bool isBigEndian;
diff --git a/saga/sprite.h b/saga/sprite.h
index 42c97675e8..2f57910961 100644
--- a/saga/sprite.h
+++ b/saga/sprite.h
@@ -65,11 +65,11 @@ class Sprite {
public:
SpriteList _mainSprites;
-
+
Sprite(SagaEngine *vm);
~Sprite(void);
-
+
// draw scaled sprite using background scene mask
void drawOccluded(Surface *ds, const Rect &clipRect, SpriteList &spriteList, int spriteNumber, const Point &screenCoord, int scale, int depth);
@@ -88,7 +88,7 @@ public:
private:
void decodeRLEBuffer(const byte *inputBuffer, size_t inLength, size_t outLength);
void scaleBuffer(const byte *src, int width, int height, int scale);
-
+
SagaEngine *_vm;
ResourceContext *_spriteContext;
byte *_decodeBuf;
diff --git a/saga/sthread.cpp b/saga/sthread.cpp
index bfa3c2cb81..e12de61fee 100644
--- a/saga/sthread.cpp
+++ b/saga/sthread.cpp
@@ -139,7 +139,7 @@ void Script::executeThreads(uint msec) {
if (thread->_sleepTime == 0)
thread->_flags &= ~kTFlagWaiting;
break;
-
+
case kWaitTypeWalk:
{
ActorData *actor;