mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-22 09:49:11 +00:00
Merged o_printStr() into o1_screenTextMsg().
svn-id: r21758
This commit is contained in:
parent
7ab84e4d99
commit
ea4e5dbb82
@ -1329,7 +1329,31 @@ void SimonEngine::o1_screenTextBox() {
|
||||
|
||||
void SimonEngine::o1_screenTextMsg() {
|
||||
// 162: print string
|
||||
o_printStr();
|
||||
uint vgaSpriteId = getVarOrByte();
|
||||
uint color = getVarOrByte();
|
||||
uint stringId = getNextStringID();
|
||||
const byte *string_ptr = NULL;
|
||||
uint speech_id = 0;
|
||||
TextLocation *tl;
|
||||
|
||||
if (stringId != 0xFFFF)
|
||||
string_ptr = getStringPtrByID(stringId);
|
||||
|
||||
if (getFeatures() & GF_TALKIE)
|
||||
speech_id = (uint16)getNextWord();
|
||||
|
||||
if (getGameType() == GType_FF)
|
||||
vgaSpriteId = 1;
|
||||
|
||||
tl = getTextLocation(vgaSpriteId);
|
||||
if (_speech && speech_id != 0)
|
||||
playSpeech(speech_id, vgaSpriteId);
|
||||
if ((getGameType() == GType_SIMON2) && (getFeatures() & GF_TALKIE) && speech_id == 0)
|
||||
o_kill_sprite_simon2(2, vgaSpriteId + 2);
|
||||
|
||||
if (string_ptr != NULL && (speech_id == 0 || _subtitles))
|
||||
printScreenText(vgaSpriteId, color, (const char *)string_ptr, tl->x, tl->y, tl->width);
|
||||
|
||||
}
|
||||
|
||||
void SimonEngine::o1_playEffect() {
|
||||
|
@ -2144,34 +2144,6 @@ TextLocation *SimonEngine::getTextLocation(uint a) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void SimonEngine::o_printStr() {
|
||||
uint vgaSpriteId = getVarOrByte();
|
||||
uint color = getVarOrByte();
|
||||
uint stringId = getNextStringID();
|
||||
const byte *string_ptr = NULL;
|
||||
uint speech_id = 0;
|
||||
TextLocation *tl;
|
||||
|
||||
if (stringId != 0xFFFF)
|
||||
string_ptr = getStringPtrByID(stringId);
|
||||
|
||||
if (getFeatures() & GF_TALKIE)
|
||||
speech_id = (uint16)getNextWord();
|
||||
|
||||
if (getGameType() == GType_FF)
|
||||
vgaSpriteId = 1;
|
||||
|
||||
tl = getTextLocation(vgaSpriteId);
|
||||
if (_speech && speech_id != 0)
|
||||
playSpeech(speech_id, vgaSpriteId);
|
||||
if ((getGameType() == GType_SIMON2) && (getFeatures() & GF_TALKIE) && speech_id == 0)
|
||||
o_kill_sprite_simon2(2, vgaSpriteId + 2);
|
||||
|
||||
if (string_ptr != NULL && (speech_id == 0 || _subtitles))
|
||||
printScreenText(vgaSpriteId, color, (const char *)string_ptr, tl->x, tl->y, tl->width);
|
||||
|
||||
}
|
||||
|
||||
void SimonEngine::loadZone(uint vga_res) {
|
||||
VgaPointersEntry *vpe;
|
||||
|
||||
|
@ -585,7 +585,6 @@ protected:
|
||||
void o_fadeToBlack();
|
||||
|
||||
TextLocation *getTextLocation(uint a);
|
||||
void o_printStr();
|
||||
void o_setup_cond_c();
|
||||
void setup_cond_c_helper();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user