SCI: Some restructuring. Added some SCI3 placeholders/stubs

svn-id: r54280
This commit is contained in:
Filippos Karapetis 2010-11-17 08:53:02 +00:00
parent 0470e47145
commit f44b084deb
4 changed files with 46 additions and 35 deletions

View file

@ -248,8 +248,8 @@ reg_t kScriptID(EngineState *s, int argc, reg_t *argv) {
uint16 address = scr->validateExportFunc(index);
// Point to the heap for SCI1.1+ games
if (getSciVersion() >= SCI_VERSION_1_1)
// Point to the heap for SCI1.1 - SCI2.1 games
if (getSciVersion() >= SCI_VERSION_1_1 && getSciVersion() <= SCI_VERSION_2_1)
address += scr->getScriptSize();
return make_reg(scriptSeg, address);