Remove excess spaces.

svn-id: r44029
This commit is contained in:
Travis Howell 2009-09-11 10:13:54 +00:00
parent eb0b61976d
commit 122ff32d75
9 changed files with 21 additions and 21 deletions

View file

@ -76,7 +76,7 @@ void ScummEngine::setCameraFollows(Actor *a, bool setCamera) {
t = a->getPos().x / 8 - _screenStartStrip; t = a->getPos().x / 8 - _screenStartStrip;
if (t < camera._leftTrigger || t > camera._rightTrigger || setCamera == true) if (t < camera._leftTrigger || t > camera._rightTrigger || setCamera == true)
setCameraAt(a->getPos().x, 0); setCameraAt(a->getPos().x, 0);
for (i = 1; i < _numActors; i++) { for (i = 1; i < _numActors; i++) {

View file

@ -1684,7 +1684,7 @@ void ScummEngine_v100he::o100_setSystemMessage() {
// one still would have to convert 'name' to the correct encoding. // one still would have to convert 'name' to the correct encoding.
//_system->setWindowCaption((const char *)name); //_system->setWindowCaption((const char *)name);
break; break;
case 131: // Set Version case 131: // Set Version
debug(1,"o100_setSystemMessage: (%d) %s", subOp, name); debug(1,"o100_setSystemMessage: (%d) %s", subOp, name);
break; break;
default: default:

View file

@ -484,7 +484,7 @@ void ScummEngine_v70he::o70_setSystemMessage() {
case 240: case 240:
debug(1,"o70_setSystemMessage: (%d) %s", subOp, name); debug(1,"o70_setSystemMessage: (%d) %s", subOp, name);
break; break;
case 241: // Set Version case 241: // Set Version
debug(1,"o70_setSystemMessage: (%d) %s", subOp, name); debug(1,"o70_setSystemMessage: (%d) %s", subOp, name);
break; break;
case 242: case 242:

View file

@ -1944,7 +1944,7 @@ void ScummEngine_v72he::o72_setSystemMessage() {
case 240: case 240:
debug(1,"o72_setSystemMessage: (%d) %s", subOp, name); debug(1,"o72_setSystemMessage: (%d) %s", subOp, name);
break; break;
case 241: // Set Version case 241: // Set Version
debug(1,"o72_setSystemMessage: (%d) %s", subOp, name); debug(1,"o72_setSystemMessage: (%d) %s", subOp, name);
break; break;
case 242: case 242:

View file

@ -300,7 +300,7 @@ void ImuseDigiSndMgr::prepareSound(byte *ptr, SoundDesc *sound) {
error("ImuseDigiSndMgr::prepareSound(%d/%s) Unknown sfx header '%s'", sound->soundId, sound->name, tag2str(tag)); error("ImuseDigiSndMgr::prepareSound(%d/%s) Unknown sfx header '%s'", sound->soundId, sound->name, tag2str(tag));
} }
} while (tag != MKID_BE('DATA')); } while (tag != MKID_BE('DATA'));
sound->offsetData = ptr - s_ptr; sound->offsetData = ptr - s_ptr;
} else { } else {
error("ImuseDigiSndMgr::prepareSound(): Unknown sound format"); error("ImuseDigiSndMgr::prepareSound(): Unknown sound format");
} }

View file

@ -52,7 +52,7 @@ void ScummEngine::startScene(int room, Actor *a, int objectNr) {
fadeOut(_switchRoomEffect2); fadeOut(_switchRoomEffect2);
_newEffect = _switchRoomEffect; _newEffect = _switchRoomEffect;
ScriptSlot *ss = &vm.slot[_currentScript]; ScriptSlot *ss = &vm.slot[_currentScript];
if (_currentScript != 0xFF) { if (_currentScript != 0xFF) {
if (ss->where == WIO_ROOM || ss->where == WIO_FLOBJECT) { if (ss->where == WIO_ROOM || ss->where == WIO_FLOBJECT) {
@ -84,7 +84,7 @@ void ScummEngine::startScene(int room, Actor *a, int objectNr) {
// Added sound queue processing between execution of exit // Added sound queue processing between execution of exit
// script and entry script. In the case of this bug, the // script and entry script. In the case of this bug, the
// entry script required that the iMuse state be fully up // entry script required that the iMuse state be fully up
// to date, including last-moment changes from the previous // to date, including last-moment changes from the previous
// exit script. // exit script.
_sound->processSound(); _sound->processSound();
} }

View file

@ -125,7 +125,7 @@ bool ScummEngine::canSaveGameStateCurrently() {
if (_game.id == GID_CMI) if (_game.id == GID_CMI)
return true; return true;
// SCUMM v4+ doesn't allow saving in room 0 or if // SCUMM v4+ doesn't allow saving in room 0 or if
// VAR(VAR_MAINMENU_KEY) to set to zero. // VAR(VAR_MAINMENU_KEY) to set to zero.
return (VAR_MAINMENU_KEY == 0xFF || (VAR(VAR_MAINMENU_KEY) != 0 && _currentRoom != 0)); return (VAR_MAINMENU_KEY == 0xFF || (VAR(VAR_MAINMENU_KEY) != 0 && _currentRoom != 0));
} }
@ -137,7 +137,7 @@ void ScummEngine::requestSave(int slot, const char *name) {
_saveLoadFlag = 1; // 1 for save _saveLoadFlag = 1; // 1 for save
assert(name); assert(name);
strncpy(_saveLoadName, name, sizeof(_saveLoadName)); strncpy(_saveLoadName, name, sizeof(_saveLoadName));
_saveLoadName[sizeof(_saveLoadName) - 1] = 0; _saveLoadName[sizeof(_saveLoadName) - 1] = 0;
} }
void ScummEngine::requestLoad(int slot) { void ScummEngine::requestLoad(int slot) {
@ -453,7 +453,7 @@ bool ScummEngine::loadState(int slot, bool compat) {
// WORKAROUND bug #795214: For unknown reasons, object 819 sometimes is in // WORKAROUND bug #795214: For unknown reasons, object 819 sometimes is in
// state 1 in old save games, implying it should be drawn. This in turn // state 1 in old save games, implying it should be drawn. This in turn
// results in a crash when entering the church, as object 819 is part of the // results in a crash when entering the church, as object 819 is part of the
// exitof the church and there are no graphics assigned to it. // exitof the church and there are no graphics assigned to it.
if (_game.id == GID_MONKEY_VGA) { if (_game.id == GID_MONKEY_VGA) {
putState(819, 0); putState(819, 0);
} }
@ -651,7 +651,7 @@ Graphics::Surface *ScummEngine::loadThumbnailFromSlot(const char *target, int sl
SaveGameHeader hdr; SaveGameHeader hdr;
if (slot < 0) if (slot < 0)
return 0; return 0;
Common::String filename = ScummEngine::makeSavegameName(target, slot, false); Common::String filename = ScummEngine::makeSavegameName(target, slot, false);
if (!(in = g_system->getSavefileManager()->openForLoading(filename))) { if (!(in = g_system->getSavefileManager()->openForLoading(filename))) {
@ -689,7 +689,7 @@ bool ScummEngine::loadInfosFromSlot(const char *target, int slot, InfoStuff *stu
SaveGameHeader hdr; SaveGameHeader hdr;
if (slot < 0) if (slot < 0)
return 0; return 0;
Common::String filename = makeSavegameName(target, slot, false); Common::String filename = makeSavegameName(target, slot, false);
if (!(in = g_system->getSavefileManager()->openForLoading(filename))) { if (!(in = g_system->getSavefileManager()->openForLoading(filename))) {

View file

@ -1090,7 +1090,7 @@ void ScummEngine_v5::o5_getDist() {
r = 60; r = 60;
// WORKAROUND bug #795937 // WORKAROUND bug #795937
if ((_game.id == GID_MONKEY_EGA || _game.id == GID_PASS) && o1 == 1 && o2 == 307 && vm.slot[_currentScript].number == 205 && r == 2) if ((_game.id == GID_MONKEY_EGA || _game.id == GID_PASS) && o1 == 1 && o2 == 307 && vm.slot[_currentScript].number == 205 && r == 2)
r = 3; r = 3;
setResult(r); setResult(r);
@ -1580,28 +1580,28 @@ void ScummEngine_v5::o5_resourceRoutines() {
// TODO: For the following see also Hibarnatus' information on bug #805691. // TODO: For the following see also Hibarnatus' information on bug #805691.
case 32: case 32:
// TODO (apparently never used in FM-TOWNS) // TODO (apparently never used in FM-TOWNS)
debug(0, "o5_resourceRoutines %d not yet handled (script %d)", op, vm.slot[_currentScript].number); debug(0, "o5_resourceRoutines %d not yet handled (script %d)", op, vm.slot[_currentScript].number);
break; break;
case 33: case 33:
// TODO (apparently never used in FM-TOWNS) // TODO (apparently never used in FM-TOWNS)
debug(0, "o5_resourceRoutines %d not yet handled (script %d)", op, vm.slot[_currentScript].number); debug(0, "o5_resourceRoutines %d not yet handled (script %d)", op, vm.slot[_currentScript].number);
break; break;
case 35: case 35:
// TODO: Might be used to set CD volume in FM-TOWNS Loom // TODO: Might be used to set CD volume in FM-TOWNS Loom
foo = getVarOrDirectByte(PARAM_2); foo = getVarOrDirectByte(PARAM_2);
debug(0, "o5_resourceRoutines %d not yet handled (script %d)", op, vm.slot[_currentScript].number); debug(0, "o5_resourceRoutines %d not yet handled (script %d)", op, vm.slot[_currentScript].number);
break; break;
case 36: case 36:
// TODO: Sets the loudness of a sound resource. Used in Indy3 and Zak. // TODO: Sets the loudness of a sound resource. Used in Indy3 and Zak.
foo = getVarOrDirectByte(PARAM_2); foo = getVarOrDirectByte(PARAM_2);
bar = fetchScriptByte(); bar = fetchScriptByte();
debug(0, "o5_resourceRoutines %d not yet handled (script %d)", op, vm.slot[_currentScript].number); debug(0, "o5_resourceRoutines %d not yet handled (script %d)", op, vm.slot[_currentScript].number);
break; break;
case 37: case 37:
// TODO: Sets the pitch of a sound resource (pitch = foo - center semitones. // TODO: Sets the pitch of a sound resource (pitch = foo - center semitones.
// "center" is at 0x32 in the sfx resource (always 0x3C in zak256, but sometimes different in Indy3). // "center" is at 0x32 in the sfx resource (always 0x3C in zak256, but sometimes different in Indy3).
foo = getVarOrDirectByte(PARAM_2); foo = getVarOrDirectByte(PARAM_2);
debug(0, "o5_resourceRoutines %d not yet handled (script %d)", op, vm.slot[_currentScript].number); debug(0, "o5_resourceRoutines %d not yet handled (script %d)", op, vm.slot[_currentScript].number);
break; break;
default: default:

View file

@ -182,9 +182,9 @@ void ImuseChannel::decode() {
unsigned char * source = _sbuffer; unsigned char * source = _sbuffer;
while (loop_size--) { while (loop_size--) {
byte v1 = *source++; byte v1 = *source++;
byte v2 = *source++; byte v2 = *source++;
byte v3 = *source++; byte v3 = *source++;
value = ((((v2 & 0x0f) << 8) | v1) << 4) - 0x8000; value = ((((v2 & 0x0f) << 8) | v1) << 4) - 0x8000;
WRITE_BE_UINT16(decoded, value); decoded += 2; WRITE_BE_UINT16(decoded, value); decoded += 2;
value = ((((v2 & 0xf0) << 4) | v3) << 4) - 0x8000; value = ((((v2 & 0xf0) << 4) | v3) << 4) - 0x8000;