Moved the code which retrieves the current room number in a separate function and merged _sci1_alloc_system_colors inside _reset_graphics_input
svn-id: r40412
This commit is contained in:
parent
ceee278def
commit
acd5a87922
4 changed files with 11 additions and 17 deletions
|
@ -424,8 +424,7 @@ reg_t kStrAt(EngineState *s, int funct_nr, int argc, reg_t *argv) {
|
|||
// LSL5 stores the password at the beginning in memory.drv, using XOR encryption,
|
||||
// which means that is_print_str() will fail. Therefore, do not use the heuristic to determine
|
||||
// if we're handling a string or an array for LSL5's password screen (room 155)
|
||||
// FIXME: implement function to get current room number
|
||||
if (s->_gameName.equalsIgnoreCase("lsl5") && (KP_UINT(s->script_000->locals_block->locals[13]) == 155))
|
||||
if (s->_gameName.equalsIgnoreCase("lsl5") && s->currentRoomNumber() == 155)
|
||||
lsl5PasswordWorkaround = true;
|
||||
|
||||
const char* dst = (const char *)dest; // used just for code beautification purposes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue