diff options
author | Gregory Montoir | 2007-01-08 12:39:31 +0000 |
---|---|---|
committer | Gregory Montoir | 2007-01-08 12:39:31 +0000 |
commit | 53d842f37700a4e7bb5dd8f7327f4b4b68d9174b (patch) | |
tree | 6a240f708df189afd9f29d8ab2c539960e124d03 /engines | |
parent | 8668200a64b0ed411e6b2473bc27d27137ec1b7c (diff) | |
download | scummvm-rg350-53d842f37700a4e7bb5dd8f7327f4b4b68d9174b.tar.gz scummvm-rg350-53d842f37700a4e7bb5dd8f7327f4b4b68d9174b.tar.bz2 scummvm-rg350-53d842f37700a4e7bb5dd8f7327f4b4b68d9174b.zip |
renamed an opcode, fixed an assert condition
svn-id: r25056
Diffstat (limited to 'engines')
-rw-r--r-- | engines/touche/opcodes.cpp | 6 | ||||
-rw-r--r-- | engines/touche/resource.cpp | 2 | ||||
-rw-r--r-- | engines/touche/touche.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/engines/touche/opcodes.cpp b/engines/touche/opcodes.cpp index 2011384348..c5f2e5afd9 100644 --- a/engines/touche/opcodes.cpp +++ b/engines/touche/opcodes.cpp @@ -90,7 +90,7 @@ void ToucheEngine::setupOpcodes() { &ToucheEngine::op_getKeyCharWalkBox, &ToucheEngine::op_startSound, /* 0x30 */ - &ToucheEngine::op_initKeyCharTalk, + &ToucheEngine::op_moveKeyCharToPos, 0, 0, 0, @@ -443,8 +443,8 @@ void ToucheEngine::op_startSound() { _newSoundPriority = 1; } -void ToucheEngine::op_initKeyCharTalk() { - debugC(9, kDebugOpcodes, "ToucheEngine::op_initKeyCharTalk()"); +void ToucheEngine::op_moveKeyCharToPos() { + debugC(9, kDebugOpcodes, "ToucheEngine::op_moveKeyCharToPos()"); int16 keyChar = _script.readNextWord(); if (keyChar == 256) { keyChar = _currentKeyCharNum; diff --git a/engines/touche/resource.cpp b/engines/touche/resource.cpp index bd96793259..db5f7a4d3e 100644 --- a/engines/touche/resource.cpp +++ b/engines/touche/resource.cpp @@ -240,7 +240,7 @@ void ToucheEngine::res_loadProgram(int num) { debugC(9, kDebugResource, "ToucheEngine::res_loadProgram() num=%d", num); const uint32 offs = res_getDataOffset(kResourceTypeProgram, num, &_programDataSize); _fData.seek(offs); - assert(_programDataSize < kMaxProgramDataSize); + assert(_programDataSize <= kMaxProgramDataSize); _fData.read(_programData, _programDataSize); } diff --git a/engines/touche/touche.h b/engines/touche/touche.h index 546c5286b0..afeca2f025 100644 --- a/engines/touche/touche.h +++ b/engines/touche/touche.h @@ -516,7 +516,7 @@ protected: void op_fetchScriptByte(); void op_getKeyCharWalkBox(); void op_startSound(); - void op_initKeyCharTalk(); + void op_moveKeyCharToPos(); void op_loadRoom(); void op_updateRoom(); void op_startTalk(); |