aboutsummaryrefslogtreecommitdiff
path: root/simon
diff options
context:
space:
mode:
authorTravis Howell2003-12-01 05:22:04 +0000
committerTravis Howell2003-12-01 05:22:04 +0000
commit82a6f9704703f7525129364e89b80cf7dc41ea64 (patch)
tree87aa4ea4b1f97d276548260815692a0db663f8b7 /simon
parent28f9c34f8c111cf3841b50feb88669ce29e73076 (diff)
downloadscummvm-rg350-82a6f9704703f7525129364e89b80cf7dc41ea64.tar.gz
scummvm-rg350-82a6f9704703f7525129364e89b80cf7dc41ea64.tar.bz2
scummvm-rg350-82a6f9704703f7525129364e89b80cf7dc41ea64.zip
cleanup
svn-id: r11441
Diffstat (limited to 'simon')
-rw-r--r--simon/items.cpp26
-rw-r--r--simon/simon.cpp2
-rw-r--r--simon/simon.h2
3 files changed, 15 insertions, 15 deletions
diff --git a/simon/items.cpp b/simon/items.cpp
index 41f1b7eb35..2646b0a58e 100644
--- a/simon/items.cpp
+++ b/simon/items.cpp
@@ -376,10 +376,10 @@ int SimonEngine::runScript() {
uint var = getVarOrByte();
uint string_id = getNextStringID();
if (_game & GF_TALKIE) {
- uint value = getNextWord();
+ uint speech_id = getNextWord();
if (var < 20) {
_stringid_array_3[var] = string_id;
- _array_4[var] = value;
+ _speechid_array_4[var] = speech_id;
}
} else {
if (var < 20)
@@ -991,20 +991,20 @@ int SimonEngine::runScript() {
break;
case 179:{ /* conversation responses */
- uint vga_struct_id = getVarOrByte(); /* and room descriptions */
+ uint vga_sprite_id = getVarOrByte(); /* and room descriptions */
uint color = getVarOrByte();
uint string_id = getVarOrByte();
uint speech_id = 0;
const char *string_ptr = (const char *)getStringPtrByID(_stringid_array_3[string_id]);
- ThreeValues *tv = getThreeValues(vga_struct_id);
+ ThreeValues *tv = getThreeValues(vga_sprite_id);
if (_game & GF_TALKIE)
- speech_id = _array_4[string_id];
+ speech_id = _speechid_array_4[string_id];
if (_speech && speech_id != 0)
- talk_with_speech(speech_id, vga_struct_id);
+ talk_with_speech(speech_id, vga_sprite_id);
if (string_ptr != NULL && _subtitles)
- talk_with_text(vga_struct_id, color, string_ptr, tv->a, tv->b, tv->c);
+ talk_with_text(vga_sprite_id, color, string_ptr, tv->a, tv->b, tv->c);
}
break;
@@ -1231,7 +1231,7 @@ bool SimonEngine::o_unk_23(uint a) {
}
void SimonEngine::o_inventory_descriptions() {
- uint vga_struct_id = getVarOrByte();
+ uint vga_sprite_id = getVarOrByte();
uint color = getVarOrByte();
const char *string_ptr = NULL;
ThreeValues *tv = NULL;
@@ -1240,7 +1240,7 @@ void SimonEngine::o_inventory_descriptions() {
Child2 *child = (Child2 *)findChildOfType(getNextItemPtr(), 2);
if (child != NULL && child->avail_props & 1) {
string_ptr = (const char *)getStringPtrByID(child->array[0]);
- tv = getThreeValues(vga_struct_id);
+ tv = getThreeValues(vga_sprite_id);
}
if ((_game & GF_SIMON2) && (_game & GF_TALKIE)) {
@@ -1292,16 +1292,16 @@ void SimonEngine::o_inventory_descriptions() {
}
if (_speech)
- talk_with_speech(var200, vga_struct_id);
+ talk_with_speech(var200, vga_sprite_id);
}
} else if (_game & GF_TALKIE) {
if (child != NULL && child->avail_props & 0x200) {
uint offs = getOffsetOfChild2Param(child, 0x200);
- talk_with_speech(child->array[offs], vga_struct_id);
+ talk_with_speech(child->array[offs], vga_sprite_id);
} else if (child != NULL && child->avail_props & 0x100) {
uint offs = getOffsetOfChild2Param(child, 0x100);
- talk_with_speech(child->array[offs] + 3550, vga_struct_id);
+ talk_with_speech(child->array[offs] + 3550, vga_sprite_id);
}
}
@@ -1311,7 +1311,7 @@ void SimonEngine::o_inventory_descriptions() {
string_ptr = buf;
}
if (string_ptr != NULL)
- talk_with_text(vga_struct_id, color, string_ptr, tv->a, tv->b, tv->c);
+ talk_with_text(vga_sprite_id, color, string_ptr, tv->a, tv->b, tv->c);
}
}
diff --git a/simon/simon.cpp b/simon/simon.cpp
index 372fea5b91..2ae2186fd9 100644
--- a/simon/simon.cpp
+++ b/simon/simon.cpp
@@ -419,7 +419,7 @@ SimonEngine::SimonEngine(GameDetector *detector, OSystem *syst)
memset(_stringid_array_2, 0, sizeof(_stringid_array_2));
memset(_stringid_array_3, 0, sizeof(_stringid_array_3));
- memset(_array_4, 0, sizeof(_array_4));
+ memset(_speechid_array_4, 0, sizeof(_speechid_array_4));
memset(_bit_array, 0, sizeof(_bit_array));
memset(_variableArray, 0, sizeof(_variableArray));
diff --git a/simon/simon.h b/simon/simon.h
index 6cd1b05bea..6aac1291f8 100644
--- a/simon/simon.h
+++ b/simon/simon.h
@@ -295,7 +295,7 @@ protected:
uint16 _stringid_array_2[20];
uint16 _stringid_array_3[20];
- uint16 _array_4[20];
+ uint16 _speechid_array_4[20];
uint16 _bit_array[32];
int16 _variableArray[256];