JANITORIAL: Remove trailing whitespace
This commit is contained in:
parent
5dda21c1c2
commit
c7f3416daa
28 changed files with 59 additions and 60 deletions
|
@ -26,7 +26,7 @@
|
||||||
// Note: the following data can be found in the original game's executable
|
// Note: the following data can be found in the original game's executable
|
||||||
const int kNumRooms = 424;
|
const int kNumRooms = 424;
|
||||||
const room_t gameRooms[kNumRooms] = {
|
const room_t gameRooms[kNumRooms] = {
|
||||||
// Mo
|
// Mo
|
||||||
{ 1, {255, 0, 0, 0}, 0, 66, 0xFFFF,29, 93, 1, 4},
|
{ 1, {255, 0, 0, 0}, 0, 66, 0xFFFF,29, 93, 1, 4},
|
||||||
{ 7, { 4, 0, 6, 0}, 4, 72, 0xFFFF, 8,143, 2, 2},
|
{ 7, { 4, 0, 6, 0}, 4, 72, 0xFFFF, 8,143, 2, 2},
|
||||||
{ 3, { 24, 0, 5, 0}, 6, 99, 1, 6, 6, 3, 0},
|
{ 3, { 24, 0, 5, 0}, 6, 99, 1, 6, 6, 3, 0},
|
||||||
|
|
|
@ -197,7 +197,7 @@ public:
|
||||||
case SEEK_CUR: _offset += whence; break;
|
case SEEK_CUR: _offset += whence; break;
|
||||||
case SEEK_END: _offset = _size + whence; break;
|
case SEEK_END: _offset = _size + whence; break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return _offset;
|
return _offset;
|
||||||
}
|
}
|
||||||
virtual long read(void *buffer, size_t len) {
|
virtual long read(void *buffer, size_t len) {
|
||||||
|
|
|
@ -486,7 +486,7 @@ void AGOSEngine::printScreenText(uint vgaSpriteId, uint color, const char *strin
|
||||||
if (_variableArray[141] == 0)
|
if (_variableArray[141] == 0)
|
||||||
_variableArray[141] = 9;
|
_variableArray[141] = 9;
|
||||||
_variableArray[85] = _variableArray[141] * talkDelay;
|
_variableArray[85] = _variableArray[141] * talkDelay;
|
||||||
|
|
||||||
if (_language == Common::HE_ISR)
|
if (_language == Common::HE_ISR)
|
||||||
_variableArray[85] += talkDelay * 2;
|
_variableArray[85] += talkDelay * 2;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -187,7 +187,7 @@ void SceneScriptNR04::ActorChangedGoal(int actorId, int newGoal, int oldGoal, bo
|
||||||
Delay(2500);
|
Delay(2500);
|
||||||
Actor_Says(kActorEarlyQ, 290, 3);
|
Actor_Says(kActorEarlyQ, 290, 3);
|
||||||
sub_401DB0();
|
sub_401DB0();
|
||||||
//return true;
|
//return true;
|
||||||
break;
|
break;
|
||||||
case 213:
|
case 213:
|
||||||
Actor_Clue_Acquire(kActorMcCoy, kClueDektorasDressingRoom, 0, kActorEarlyQ);
|
Actor_Clue_Acquire(kActorMcCoy, kClueDektorasDressingRoom, 0, kActorEarlyQ);
|
||||||
|
|
|
@ -241,7 +241,7 @@ void Frame::readChannels(Common::ReadStreamEndian *stream) {
|
||||||
sprite._width = stream->readUint16();
|
sprite._width = stream->readUint16();
|
||||||
stream->readUint16();
|
stream->readUint16();
|
||||||
stream->readUint16();
|
stream->readUint16();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sprite._castId) {
|
if (sprite._castId) {
|
||||||
|
|
|
@ -1188,7 +1188,7 @@ void ScummEngine_v2::o2_startScript() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// WORKAROUND bug #4556: Purple Tentacle can appear in the lab, after being
|
// WORKAROUND bug #4556: Purple Tentacle can appear in the lab, after being
|
||||||
// chased out and end up stuck in the room. This bug is triggered if the player
|
// chased out and end up stuck in the room. This bug is triggered if the player
|
||||||
// enters the lab within 45 minutes of first entering the mansion and has chased Purple Tentacle
|
// enters the lab within 45 minutes of first entering the mansion and has chased Purple Tentacle
|
||||||
// out. Eventually the cutscene with Purple Tentacle chasing Sandy in the lab
|
// out. Eventually the cutscene with Purple Tentacle chasing Sandy in the lab
|
||||||
|
@ -1211,10 +1211,9 @@ void ScummEngine_v2::o2_startScript() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScummEngine_v2::stopScriptCommon(int script) {
|
void ScummEngine_v2::stopScriptCommon(int script) {
|
||||||
|
|
||||||
// WORKAROUND bug #4112: If you enter the lab while Dr. Fred has the powered turned off
|
// WORKAROUND bug #4112: If you enter the lab while Dr. Fred has the powered turned off
|
||||||
// to repair the Zom-B-Matic, the script will be stopped and the power will never turn
|
// to repair the Zom-B-Matic, the script will be stopped and the power will never turn
|
||||||
// back on. This fix forces the power on, when the player enters the lab,
|
// back on. This fix forces the power on, when the player enters the lab,
|
||||||
// if the script which turned it off is running
|
// if the script which turned it off is running
|
||||||
if (_game.id == GID_MANIAC && _roomResource == 4 && isScriptRunning(MM_SCRIPT(138))) {
|
if (_game.id == GID_MANIAC && _roomResource == 4 && isScriptRunning(MM_SCRIPT(138))) {
|
||||||
|
|
||||||
|
@ -1320,7 +1319,7 @@ void ScummEngine_v2::o2_putActorInRoom() {
|
||||||
// Var[245] is set to have the Disguise on in most situations
|
// Var[245] is set to have the Disguise on in most situations
|
||||||
//
|
//
|
||||||
// We don't touch the variable in the following situations
|
// We don't touch the variable in the following situations
|
||||||
// If the Caponian is being put into the space ship room, or the current room is the
|
// If the Caponian is being put into the space ship room, or the current room is the
|
||||||
// space ship and the Caponian is being put into the backroom of the telephone company (you didnt show your fan club card)
|
// space ship and the Caponian is being put into the backroom of the telephone company (you didnt show your fan club card)
|
||||||
if (_game.id == GID_ZAK && _game.version <= 2 && act == 7) {
|
if (_game.id == GID_ZAK && _game.version <= 2 && act == 7) {
|
||||||
// Is script-96 cutscene done
|
// Is script-96 cutscene done
|
||||||
|
|
|
@ -185,7 +185,7 @@ void CContinueSaveDialog::mouseMove(const Point &mousePos) {
|
||||||
void CContinueSaveDialog::leftButtonDown(const Point &mousePos) {
|
void CContinueSaveDialog::leftButtonDown(const Point &mousePos) {
|
||||||
Rect eye1(188, 190, 192, 195), eye2(209, 192, 213, 197);
|
Rect eye1(188, 190, 192, 195), eye2(209, 192, 213, 197);
|
||||||
|
|
||||||
if (g_vm->_events->isSpecialPressed(MK_SHIFT) &&
|
if (g_vm->_events->isSpecialPressed(MK_SHIFT) &&
|
||||||
(eye1.contains(mousePos) || eye2.contains(mousePos))) {
|
(eye1.contains(mousePos) || eye2.contains(mousePos))) {
|
||||||
// Show the Easter Egg "Evil Twin"
|
// Show the Easter Egg "Evil Twin"
|
||||||
_evilTwinShown = true;
|
_evilTwinShown = true;
|
||||||
|
|
|
@ -357,7 +357,7 @@ bool Debugger::cmdFrame(int argc, const char **argv) {
|
||||||
if (argc == 3) {
|
if (argc == 3) {
|
||||||
CGameObject *obj = dynamic_cast<CGameObject *>(
|
CGameObject *obj = dynamic_cast<CGameObject *>(
|
||||||
g_vm->_window->_project->findByName(argv[1]));
|
g_vm->_window->_project->findByName(argv[1]));
|
||||||
|
|
||||||
if (obj) {
|
if (obj) {
|
||||||
obj->loadFrame(strToInt(argv[2]));
|
obj->loadFrame(strToInt(argv[2]));
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -374,7 +374,7 @@ bool CBomb::TimerMsg(CTimerMsg *msg) {
|
||||||
addTimer(0, 100, 0);
|
addTimer(0, 100, 0);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (msg->_actionVal == 0) {
|
if (msg->_actionVal == 0) {
|
||||||
addTimer(1, 1000, 0);
|
addTimer(1, 1000, 0);
|
||||||
} else {
|
} else {
|
||||||
|
@ -459,7 +459,7 @@ bool CBomb::TimerMsg(CTimerMsg *msg) {
|
||||||
--_countdown;
|
--_countdown;
|
||||||
addTimer(0, 1000, 0);
|
addTimer(0, 1000, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -301,7 +301,7 @@ bool CDeskbot::TrueTalkNotifySpeechEndedMsg(CTrueTalkNotifySpeechEndedMsg *msg)
|
||||||
|
|
||||||
CTurnOff turnOff;
|
CTurnOff turnOff;
|
||||||
CTrueTalkNPC::TrueTalkNotifySpeechEndedMsg(msg);
|
CTrueTalkNPC::TrueTalkNotifySpeechEndedMsg(msg);
|
||||||
|
|
||||||
if (g_language == Common::DE_DEU) {
|
if (g_language == Common::DE_DEU) {
|
||||||
switch (msg->_dialogueId) {
|
switch (msg->_dialogueId) {
|
||||||
case 41701:
|
case 41701:
|
||||||
|
|
|
@ -230,7 +230,7 @@ void CMusicRoomHandler::updateAudio() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_audioBuffer->push(audioData, size);
|
_audioBuffer->push(audioData, size);
|
||||||
delete[] audioData;
|
delete[] audioData;
|
||||||
}
|
}
|
||||||
|
|
|
@ -127,7 +127,7 @@ bool CSongParser::parse(CValuePair &r) {
|
||||||
} else if (_currentChar == '^') {
|
} else if (_currentChar == '^') {
|
||||||
if (_flag)
|
if (_flag)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
_flag = true;
|
_flag = true;
|
||||||
r._data = 0x7FFFFFFF;
|
r._data = 0x7FFFFFFF;
|
||||||
r._length = _field10;
|
r._length = _field10;
|
||||||
|
@ -176,7 +176,7 @@ bool CSongParser::parse(CValuePair &r) {
|
||||||
FETCH_CHAR;
|
FETCH_CHAR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_flag)
|
if (!_flag)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
|
@ -62,17 +62,17 @@ public:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clear src and dest orientation and set some default values for other fields
|
* Clear src and dest orientation and set some default values for other fields
|
||||||
*/
|
*/
|
||||||
void clear();
|
void clear();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setup a transition to from one position to another
|
* Setup a transition to from one position to another
|
||||||
*/
|
*/
|
||||||
void setPath(const FVector &srcV, const FVector &destV);
|
void setPath(const FVector &srcV, const FVector &destV);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Applys speeds to the mover. More than one application is usually done for several transitions
|
* Applys speeds to the mover. More than one application is usually done for several transitions
|
||||||
*/
|
*/
|
||||||
virtual MoverState move(CErrorCode &errorCode, FVector &pos, FMatrix &orientation) { return DONE_MOVING; }
|
virtual MoverState move(CErrorCode &errorCode, FVector &pos, FMatrix &orientation) { return DONE_MOVING; }
|
||||||
/**
|
/**
|
||||||
* Given a distance to cover, determines a bunch of speeds for a gradual transition
|
* Given a distance to cover, determines a bunch of speeds for a gradual transition
|
||||||
|
|
|
@ -46,7 +46,7 @@ public:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Applys speeds to the mover. More than one application is usually done for several transitions
|
* Applys speeds to the mover. More than one application is usually done for several transitions
|
||||||
*/
|
*/
|
||||||
virtual MoverState move(CErrorCode &errorCode, FVector &pos, FMatrix &orientation);
|
virtual MoverState move(CErrorCode &errorCode, FVector &pos, FMatrix &orientation);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -69,9 +69,9 @@ bool CStarCloseup::setup2(int val1, int val2) {
|
||||||
const int VALUES1[] = { 0x800, 0xC00, 0x1000, 0x1400, 0x1800 };
|
const int VALUES1[] = { 0x800, 0xC00, 0x1000, 0x1400, 0x1800 };
|
||||||
const int VALUES2[] = {
|
const int VALUES2[] = {
|
||||||
0xF95BCD, 0xA505A0, 0xFFAD43, 0x98F4EB, 0xF3EFA5, 0,
|
0xF95BCD, 0xA505A0, 0xFFAD43, 0x98F4EB, 0xF3EFA5, 0,
|
||||||
0xFFFFFF, 0x81EEF5, 0x5FFD3, 0x4EE4FA, 0x11C3FF, 0x28F3F4,
|
0xFFFFFF, 0x81EEF5, 0x5FFD3, 0x4EE4FA, 0x11C3FF, 0x28F3F4,
|
||||||
0x36FCF2, 0x29F1FD, 0x29BCFD, 0x98E3F4, 0xBBF3D9, 0x8198F5,
|
0x36FCF2, 0x29F1FD, 0x29BCFD, 0x98E3F4, 0xBBF3D9, 0x8198F5,
|
||||||
0x5BE4F9, 0x0D6E2, 0x74EEF6, 0x68DEF8
|
0x5BE4F9, 0x0D6E2, 0x74EEF6, 0x68DEF8
|
||||||
};
|
};
|
||||||
|
|
||||||
Entry *e = &_entries[0];
|
Entry *e = &_entries[0];
|
||||||
|
@ -174,7 +174,7 @@ bool CStarCloseup::setup2(int val1, int val2) {
|
||||||
e->_pixel2 = (val >> 8) & 0xff;
|
e->_pixel2 = (val >> 8) & 0xff;
|
||||||
e->_pixel3 = (val >> 16) & 0xff;
|
e->_pixel3 = (val >> 16) & 0xff;
|
||||||
e->_field8 = g_vm->getRandomNumber(3) + 3;
|
e->_field8 = g_vm->getRandomNumber(3) + 3;
|
||||||
|
|
||||||
e->_fieldC = g_vm->getRandomNumber(255);
|
e->_fieldC = g_vm->getRandomNumber(255);
|
||||||
e->_field10 = FACTOR * (float)g_vm->getRandomNumber(15);
|
e->_field10 = FACTOR * (float)g_vm->getRandomNumber(15);
|
||||||
e->_field14 = ((float)g_vm->getRandomNumber(0xfffffffe)
|
e->_field14 = ((float)g_vm->getRandomNumber(0xfffffffe)
|
||||||
|
@ -293,7 +293,7 @@ void CStarCloseup::draw(const FPose &pose, const FVector &vector, const FVector
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (starColor) {
|
switch (starColor) {
|
||||||
case WHITE:
|
case WHITE:
|
||||||
surfaceArea->setMode(SA_SOLID);
|
surfaceArea->setMode(SA_SOLID);
|
||||||
surfaceArea->_pixel = MKTAG_BE(entryP->_pixel1, entryP->_pixel2,
|
surfaceArea->_pixel = MKTAG_BE(entryP->_pixel1, entryP->_pixel2,
|
||||||
entryP->_pixel3, 0);
|
entryP->_pixel3, 0);
|
||||||
|
@ -424,7 +424,7 @@ void CStarCloseup::draw(const FPose &pose, const FVector &vector, const FVector
|
||||||
surfaceArea->drawLine(FRect(grid1._position._x, grid1._position._y,
|
surfaceArea->drawLine(FRect(grid1._position._x, grid1._position._y,
|
||||||
grid2._position._x, grid2._position._y));
|
grid2._position._x, grid2._position._y));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case PINK:
|
case PINK:
|
||||||
surfaceArea->setMode(SA_SOLID);
|
surfaceArea->setMode(SA_SOLID);
|
||||||
|
|
|
@ -35,7 +35,7 @@ namespace Titanic {
|
||||||
* For starview it should be white
|
* For starview it should be white
|
||||||
* For skyview it should be pink
|
* For skyview it should be pink
|
||||||
*/
|
*/
|
||||||
enum StarColor { WHITE = 0, PINK = 2 };
|
enum StarColor { WHITE = 0, PINK = 2 };
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements the viewport functionality for viewing the star field in
|
* Implements the viewport functionality for viewing the star field in
|
||||||
|
@ -111,14 +111,14 @@ public:
|
||||||
* The view has changed between starview and skyview
|
* The view has changed between starview and skyview
|
||||||
* Change the enum that tracks the color of the stars
|
* Change the enum that tracks the color of the stars
|
||||||
* Also change the X coordinate pixel offset used for star drawing
|
* Also change the X coordinate pixel offset used for star drawing
|
||||||
*/
|
*/
|
||||||
void changeStarColorPixel(StarMode mode, double pixelOffSet);
|
void changeStarColorPixel(StarMode mode, double pixelOffSet);
|
||||||
void reposition(double factor);
|
void reposition(double factor);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Applys a rotation matrix to the current
|
* Applys a rotation matrix to the current
|
||||||
* orientation
|
* orientation
|
||||||
*/
|
*/
|
||||||
void changeOrientation(const FMatrix &matrix);
|
void changeOrientation(const FMatrix &matrix);
|
||||||
|
|
||||||
FPose getPose();
|
FPose getPose();
|
||||||
|
@ -148,15 +148,15 @@ public:
|
||||||
/**
|
/**
|
||||||
* Sets the center vector y angle
|
* Sets the center vector y angle
|
||||||
* The actual center y value doesn't
|
* The actual center y value doesn't
|
||||||
* change untill reset is called
|
* change untill reset is called
|
||||||
*/
|
*/
|
||||||
void setCenterYAngle(double angleDegrees);
|
void setCenterYAngle(double angleDegrees);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the center vector z angle
|
* Sets the center vector z angle
|
||||||
* The actual center z value doesn't
|
* The actual center z value doesn't
|
||||||
* change untill reset is called
|
* change untill reset is called
|
||||||
*/
|
*/
|
||||||
void setCenterZAngle(double angleDegrees);
|
void setCenterZAngle(double angleDegrees);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1760,7 +1760,7 @@ void TTparser::preprocessGerman(TTstring &line) {
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
const char *wordEndP = p + _replacements4[idx].size();
|
const char *wordEndP = p + _replacements4[idx].size();
|
||||||
|
|
||||||
for (int sIdx = 0; sIdx < 12; ++sIdx) {
|
for (int sIdx = 0; sIdx < 12; ++sIdx) {
|
||||||
const char *suffixP = SUFFIXES[sIdx];
|
const char *suffixP = SUFFIXES[sIdx];
|
||||||
if (!strncmp(wordEndP, suffixP, strlen(suffixP))) {
|
if (!strncmp(wordEndP, suffixP, strlen(suffixP))) {
|
||||||
|
|
|
@ -196,7 +196,7 @@ void Character::synchronize(Common::Serializer &s) {
|
||||||
// upper nibble of the first 64 bytes. Except for award 9, which was a full
|
// upper nibble of the first 64 bytes. Except for award 9, which was a full
|
||||||
// byte counter counting the number of times the warzone was awarded
|
// byte counter counting the number of times the warzone was awarded
|
||||||
for (int idx = 0; idx < 64; ++idx) {
|
for (int idx = 0; idx < 64; ++idx) {
|
||||||
byte b = (idx == WARZONE_AWARD) ? _awards[idx] :
|
byte b = (idx == WARZONE_AWARD) ? _awards[idx] :
|
||||||
(_awards[idx] ? 0x1 : 0) | (_awards[idx + 64] ? 0x10 : 0);
|
(_awards[idx] ? 0x1 : 0) | (_awards[idx + 64] ? 0x10 : 0);
|
||||||
s.syncAsByte(b);
|
s.syncAsByte(b);
|
||||||
if (s.isLoading()) {
|
if (s.isLoading()) {
|
||||||
|
|
|
@ -170,7 +170,7 @@ bool Debugger::cmdMap(int argc, const char **argv) {
|
||||||
int mapId = strToInt(argv[1]);
|
int mapId = strToInt(argv[1]);
|
||||||
int x = argc < 3 ? 8 : strToInt(argv[2]);
|
int x = argc < 3 ? 8 : strToInt(argv[2]);
|
||||||
int y = argc < 4 ? 8 : strToInt(argv[3]);
|
int y = argc < 4 ? 8 : strToInt(argv[3]);
|
||||||
|
|
||||||
if (argc == 5)
|
if (argc == 5)
|
||||||
map._loadCcNum = strToInt(argv[4]);
|
map._loadCcNum = strToInt(argv[4]);
|
||||||
map.load(mapId);
|
map.load(mapId);
|
||||||
|
|
|
@ -554,7 +554,7 @@ int CreateCharacterDialog::exchangeAttribute(int srcAttr) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
int destAttr = getAttribFromKeycode(_buttonValue);
|
int destAttr = getAttribFromKeycode(_buttonValue);
|
||||||
|
|
||||||
if (destAttr != -1 && srcAttr != destAttr) {
|
if (destAttr != -1 && srcAttr != destAttr) {
|
||||||
result = destAttr;
|
result = destAttr;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -161,7 +161,7 @@ void InterfaceMinimap::drawIndoorsMinimap() {
|
||||||
(map._currentSteppedOn || party._wizardEyeActive)) {
|
(map._currentSteppedOn || party._wizardEyeActive)) {
|
||||||
map._tileSprites.draw(1,
|
map._tileSprites.draw(1,
|
||||||
map.mazeData()._surfaceTypes[map._currentSurfaceId] + 36,
|
map.mazeData()._surfaceTypes[map._currentSurfaceId] + 36,
|
||||||
Common::Point(MINIMAP_XSTART - (TILE_WIDTH / 2),
|
Common::Point(MINIMAP_XSTART - (TILE_WIDTH / 2),
|
||||||
MINIMAP_YSTART - (TILE_HEIGHT / 2) + 1));
|
MINIMAP_YSTART - (TILE_HEIGHT / 2) + 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -192,7 +192,7 @@ void InterfaceMinimap::drawIndoorsMinimap() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle drawing partially clip top row and left column
|
// Handle drawing partially clip top row and left column
|
||||||
for (int xp = MINIMAP_XSTART, yp = MINIMAP_YSTART + (MINIMAP_SIZE - 1) * TILE_HEIGHT,
|
for (int xp = MINIMAP_XSTART, yp = MINIMAP_YSTART + (MINIMAP_SIZE - 1) * TILE_HEIGHT,
|
||||||
mazeX = pt.x - MINIMAP_DIFF, mazeY = pt.y + MINIMAP_DIFF;
|
mazeX = pt.x - MINIMAP_DIFF, mazeY = pt.y + MINIMAP_DIFF;
|
||||||
mazeX <= (pt.x - MINIMAP_DIFF);
|
mazeX <= (pt.x - MINIMAP_DIFF);
|
||||||
xp += TILE_WIDTH, yp -= TILE_HEIGHT, ++mazeX, --mazeY) {
|
xp += TILE_WIDTH, yp -= TILE_HEIGHT, ++mazeX, --mazeY) {
|
||||||
|
|
|
@ -1146,7 +1146,7 @@ int ArenaLocation::show() {
|
||||||
int count = party._activeParty[0]._awards[WARZONE_AWARD];
|
int count = party._activeParty[0]._awards[WARZONE_AWARD];
|
||||||
int suffixNum = (count < 10) ? count : 0;
|
int suffixNum = (count < 10) ? count : 0;
|
||||||
Common::String msg = Common::String::format(format.c_str(), count, SUFFIXES[suffixNum]);
|
Common::String msg = Common::String::format(format.c_str(), count, SUFFIXES[suffixNum]);
|
||||||
|
|
||||||
LocationMessage::show(27, Res.WARZONE_BATTLE_MASTER, msg, 1);
|
LocationMessage::show(27, Res.WARZONE_BATTLE_MASTER, msg, 1);
|
||||||
|
|
||||||
map.load(28);
|
map.load(28);
|
||||||
|
@ -1383,7 +1383,7 @@ int ReaperCutscene::show() {
|
||||||
events.updateGameCounter();
|
events.updateGameCounter();
|
||||||
screen.blitFrom(savedBg);
|
screen.blitFrom(savedBg);
|
||||||
sprites1.draw(0, 0, Common::Point(REAPER_X1[_ccNum][idx], REAPER_Y1[_ccNum][idx]), 0, idx);
|
sprites1.draw(0, 0, Common::Point(REAPER_X1[_ccNum][idx], REAPER_Y1[_ccNum][idx]), 0, idx);
|
||||||
|
|
||||||
if (_ccNum) {
|
if (_ccNum) {
|
||||||
sprites1.draw(0, 1, Common::Point(REAPER_X2[idx], REAPER_Y1[1][idx]), 0, idx);
|
sprites1.draw(0, 1, Common::Point(REAPER_X2[idx], REAPER_Y1[1][idx]), 0, idx);
|
||||||
sprites1.draw(0, party._isNight ? 3 : 2, Common::Point(REAPER_X3[idx], REAPER_Y1[1][idx]), 0, idx);
|
sprites1.draw(0, party._isNight ? 3 : 2, Common::Point(REAPER_X3[idx], REAPER_Y1[1][idx]), 0, idx);
|
||||||
|
@ -1592,7 +1592,7 @@ int GolemCutscene::show() {
|
||||||
if (!_ccNum)
|
if (!_ccNum)
|
||||||
sprites2[0].draw(0, 2, Common::Point(idx + g_vm->getRandomNumber(9) - 5,
|
sprites2[0].draw(0, 2, Common::Point(idx + g_vm->getRandomNumber(9) - 5,
|
||||||
g_vm->getRandomNumber(9) - 5), SPRFLAG_800);
|
g_vm->getRandomNumber(9) - 5), SPRFLAG_800);
|
||||||
|
|
||||||
if (!_ccNum && !sound.isSoundPlaying())
|
if (!_ccNum && !sound.isSoundPlaying())
|
||||||
sound.playSound("ogre.voc");
|
sound.playSound("ogre.voc");
|
||||||
|
|
||||||
|
@ -2101,7 +2101,7 @@ int SphinxCutscene::show() {
|
||||||
// Save background
|
// Save background
|
||||||
Graphics::ManagedSurface bgSurface;
|
Graphics::ManagedSurface bgSurface;
|
||||||
bgSurface.copyFrom(screen);
|
bgSurface.copyFrom(screen);
|
||||||
|
|
||||||
for (int idx = 8; idx >= 0; --idx) {
|
for (int idx = 8; idx >= 0; --idx) {
|
||||||
events.updateGameCounter();
|
events.updateGameCounter();
|
||||||
screen.blitFrom(bgSurface);
|
screen.blitFrom(bgSurface);
|
||||||
|
|
|
@ -57,7 +57,7 @@ void Patcher::patchScripts() {
|
||||||
FileManager &files = *g_vm->_files;
|
FileManager &files = *g_vm->_files;
|
||||||
Map &map = *g_vm->_map;
|
Map &map = *g_vm->_map;
|
||||||
Party &party = *g_vm->_party;
|
Party &party = *g_vm->_party;
|
||||||
|
|
||||||
uint gameId = g_vm->getGameID();
|
uint gameId = g_vm->getGameID();
|
||||||
if (gameId == GType_WorldOfXeen)
|
if (gameId == GType_WorldOfXeen)
|
||||||
gameId = files._ccNum ? GType_DarkSide : GType_Clouds;
|
gameId = files._ccNum ? GType_DarkSide : GType_Clouds;
|
||||||
|
@ -66,7 +66,7 @@ void Patcher::patchScripts() {
|
||||||
const ScriptEntry &se = SCRIPT_PATCHES[patchIdx];
|
const ScriptEntry &se = SCRIPT_PATCHES[patchIdx];
|
||||||
if (se._gameId != gameId || se._mapId != party._mazeId)
|
if (se._gameId != gameId || se._mapId != party._mazeId)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
MazeEvent evt;
|
MazeEvent evt;
|
||||||
Common::MemoryReadStream memStream(se._data, se._data[0] + 1);
|
Common::MemoryReadStream memStream(se._data, se._data[0] + 1);
|
||||||
Common::Serializer s(&memStream, nullptr);
|
Common::Serializer s(&memStream, nullptr);
|
||||||
|
|
|
@ -278,7 +278,7 @@ bool CloudsCutscenes::showCloudsIntroInner() {
|
||||||
sound.playVoice(_INTRO_VOCS[lineCtr]);
|
sound.playVoice(_INTRO_VOCS[lineCtr]);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int frameCtr = 0, lookup = 0; sound.isSoundPlaying() ||
|
for (int frameCtr = 0, lookup = 0; sound.isSoundPlaying() ||
|
||||||
(_subtitles.active() && (lineCtr == 0 || lineCtr == 4 || lineCtr == 10 || lineCtr == 13)); ) {
|
(_subtitles.active() && (lineCtr == 0 || lineCtr == 4 || lineCtr == 10 || lineCtr == 13)); ) {
|
||||||
groupo.draw(0, 0);
|
groupo.draw(0, 0);
|
||||||
groupo.draw(0, 1, Common::Point(160, 0));
|
groupo.draw(0, 1, Common::Point(160, 0));
|
||||||
|
@ -332,7 +332,7 @@ bool CloudsCutscenes::showCloudsIntroInner() {
|
||||||
windows[0].writeString(Res.CLOUDS_INTRO1);
|
windows[0].writeString(Res.CLOUDS_INTRO1);
|
||||||
|
|
||||||
ctr5 = (ctr5 + 1) % 19;
|
ctr5 = (ctr5 + 1) % 19;
|
||||||
|
|
||||||
WAIT(1);
|
WAIT(1);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -985,7 +985,7 @@ bool CloudsCutscenes::showCloudsEnding5() {
|
||||||
king.draw(0, 1, Common::Point(160, 0));
|
king.draw(0, 1, Common::Point(160, 0));
|
||||||
screen.fadeIn();
|
screen.fadeIn();
|
||||||
_subtitles.setLine(13);
|
_subtitles.setLine(13);
|
||||||
|
|
||||||
sound.playVoice("king4.voc");
|
sound.playVoice("king4.voc");
|
||||||
do {
|
do {
|
||||||
king.draw(0, 0, Common::Point(0, 0));
|
king.draw(0, 0, Common::Point(0, 0));
|
||||||
|
|
|
@ -104,7 +104,7 @@ bool DarkSideCutscenes::showDarkSideTitle(bool seenIntro) {
|
||||||
// Render the next frame
|
// Render the next frame
|
||||||
screen.vertMerge(0);
|
screen.vertMerge(0);
|
||||||
nwc[nwcIndex].draw(0, nwcFrame);
|
nwc[nwcIndex].draw(0, nwcFrame);
|
||||||
|
|
||||||
switch (idx) {
|
switch (idx) {
|
||||||
case 17:
|
case 17:
|
||||||
sound.playSound(voc[0]);
|
sound.playSound(voc[0]);
|
||||||
|
@ -128,7 +128,7 @@ bool DarkSideCutscenes::showDarkSideTitle(bool seenIntro) {
|
||||||
for (int idx = 0; idx < 42 && !g_vm->shouldExit(); ++idx) {
|
for (int idx = 0; idx < 42 && !g_vm->shouldExit(); ++idx) {
|
||||||
screen.vertMerge(SCREEN_HEIGHT);
|
screen.vertMerge(SCREEN_HEIGHT);
|
||||||
nwc[3].draw(0, idx);
|
nwc[3].draw(0, idx);
|
||||||
|
|
||||||
switch (idx) {
|
switch (idx) {
|
||||||
case 3:
|
case 3:
|
||||||
sound.playFX(40);
|
sound.playFX(40);
|
||||||
|
@ -808,7 +808,7 @@ bool DarkSideCutscenes::showWorldOfXeenLogo() {
|
||||||
for (int idx = 0; idx < 21; ++idx) {
|
for (int idx = 0; idx < 21; ++idx) {
|
||||||
screen.restoreBackground();
|
screen.restoreBackground();
|
||||||
wfire[6].draw(0, idx, Common::Point(0, 45));
|
wfire[6].draw(0, idx, Common::Point(0, 45));
|
||||||
|
|
||||||
switch (idx) {
|
switch (idx) {
|
||||||
case 0:
|
case 0:
|
||||||
case 11:
|
case 11:
|
||||||
|
|
|
@ -57,7 +57,7 @@ void MainMenuContainer::show() {
|
||||||
MainMenuContainer::MainMenuContainer(const char *spritesName1, const char *spritesName2, const char *spritesName3) :
|
MainMenuContainer::MainMenuContainer(const char *spritesName1, const char *spritesName2, const char *spritesName3) :
|
||||||
_animateCtr(0), _dialog(nullptr) {
|
_animateCtr(0), _dialog(nullptr) {
|
||||||
g_vm->_files->setGameCc(g_vm->getGameID() == GType_Clouds ? 0 : 1);
|
g_vm->_files->setGameCc(g_vm->getGameID() == GType_Clouds ? 0 : 1);
|
||||||
|
|
||||||
_backgroundSprites.resize(1 + (spritesName2 ? 1 : 0) + (spritesName3 ? 1 : 0));
|
_backgroundSprites.resize(1 + (spritesName2 ? 1 : 0) + (spritesName3 ? 1 : 0));
|
||||||
_backgroundSprites[0].load(spritesName1);
|
_backgroundSprites[0].load(spritesName1);
|
||||||
if (spritesName2)
|
if (spritesName2)
|
||||||
|
@ -120,7 +120,7 @@ void MainMenuContainer::execute() {
|
||||||
|
|
||||||
// Check for events
|
// Check for events
|
||||||
events.updateGameCounter();
|
events.updateGameCounter();
|
||||||
|
|
||||||
if (events.wait(4, true)) {
|
if (events.wait(4, true)) {
|
||||||
if (_dialog) {
|
if (_dialog) {
|
||||||
// There's a dialog active, so let it handle the event
|
// There's a dialog active, so let it handle the event
|
||||||
|
@ -337,7 +337,7 @@ void CloudsMenuDialog::loadButtons() {
|
||||||
void CloudsMenuDialog::draw() {
|
void CloudsMenuDialog::draw() {
|
||||||
Windows &windows = *g_vm->_windows;
|
Windows &windows = *g_vm->_windows;
|
||||||
Window &w = windows[GAME_WINDOW];
|
Window &w = windows[GAME_WINDOW];
|
||||||
|
|
||||||
w.frame();
|
w.frame();
|
||||||
w.writeString(Common::String::format(Res.OPTIONS_MENU, Res.GAME_NAMES[0], g_vm->_gameWon[0] ? 117 : 92, 1992));
|
w.writeString(Common::String::format(Res.OPTIONS_MENU, Res.GAME_NAMES[0], g_vm->_gameWon[0] ? 117 : 92, 1992));
|
||||||
drawButtons(&w);
|
drawButtons(&w);
|
||||||
|
@ -584,7 +584,7 @@ void OtherOptionsDialog::draw() {
|
||||||
|
|
||||||
w.frame();
|
w.frame();
|
||||||
w.writeString(Common::String::format(Res.OPTIONS_MENU,
|
w.writeString(Common::String::format(Res.OPTIONS_MENU,
|
||||||
Res.GAME_NAMES[g_vm->getGameID() == GType_WorldOfXeen ? 2 : 1],
|
Res.GAME_NAMES[g_vm->getGameID() == GType_WorldOfXeen ? 2 : 1],
|
||||||
w.getBounds().height() - 33, 1993));
|
w.getBounds().height() - 33, 1993));
|
||||||
drawButtons(&w);
|
drawButtons(&w);
|
||||||
}
|
}
|
||||||
|
|
|
@ -404,17 +404,17 @@ void Debugger::splitCommand(char *input, int &argc, const char **argv) {
|
||||||
byte c;
|
byte c;
|
||||||
enum states { DULL, IN_WORD, IN_STRING } state = DULL;
|
enum states { DULL, IN_WORD, IN_STRING } state = DULL;
|
||||||
const char *paramStart = nullptr;
|
const char *paramStart = nullptr;
|
||||||
|
|
||||||
argc = 0;
|
argc = 0;
|
||||||
for (char *p = input; *p; ++p) {
|
for (char *p = input; *p; ++p) {
|
||||||
c = (byte)*p;
|
c = (byte)*p;
|
||||||
|
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case DULL:
|
case DULL:
|
||||||
// not in a word, not in a double quoted string
|
// not in a word, not in a double quoted string
|
||||||
if (isspace(c))
|
if (isspace(c))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// not a space -- if it's a double quote we go to IN_STRING, else to IN_WORD
|
// not a space -- if it's a double quote we go to IN_STRING, else to IN_WORD
|
||||||
if (c == '"') {
|
if (c == '"') {
|
||||||
state = IN_STRING;
|
state = IN_STRING;
|
||||||
|
|
|
@ -167,7 +167,7 @@ void TabWidget::setActiveTab(int tabID) {
|
||||||
}
|
}
|
||||||
_activeTab = tabID;
|
_activeTab = tabID;
|
||||||
_firstWidget = _tabs[tabID].firstWidget;
|
_firstWidget = _tabs[tabID].firstWidget;
|
||||||
|
|
||||||
// Also ensure the tab is visible in the tab bar
|
// Also ensure the tab is visible in the tab bar
|
||||||
if (_firstVisibleTab > tabID)
|
if (_firstVisibleTab > tabID)
|
||||||
setFirstVisible(tabID, true);
|
setFirstVisible(tabID, true);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue