Script fix. Magnifier, Memory and Save/Load, while still not working correctly, don't crash the game anymore
svn-id: r35385
This commit is contained in:
parent
513aeee844
commit
f825ccd63f
8 changed files with 15 additions and 27 deletions
|
@ -388,7 +388,6 @@ protected:
|
|||
bool o2_addCollision(OpFuncParams ¶ms);
|
||||
bool o2_freeCollision(OpFuncParams ¶ms);
|
||||
bool o2_goblinFunc(OpFuncParams ¶ms);
|
||||
bool o2_createSprite(OpFuncParams ¶ms);
|
||||
bool o2_stopSound(OpFuncParams ¶ms);
|
||||
bool o2_loadSound(OpFuncParams ¶ms);
|
||||
bool o2_getFreeMem(OpFuncParams ¶ms);
|
||||
|
|
|
@ -492,7 +492,7 @@ void Inter_Bargon::setupOpcodes() {
|
|||
/* 24 */
|
||||
OPCODE(o1_putPixel),
|
||||
OPCODE(o2_goblinFunc),
|
||||
OPCODE(o2_createSprite),
|
||||
OPCODE(o1_createSprite),
|
||||
OPCODE(o1_freeSprite),
|
||||
/* 28 */
|
||||
{NULL, ""},
|
||||
|
|
|
@ -1821,9 +1821,15 @@ bool Inter_v1::o1_createSprite(OpFuncParams ¶ms) {
|
|||
int16 width, height;
|
||||
int16 flag;
|
||||
|
||||
if (_vm->_global->_inter_execPtr[1] == 0) {
|
||||
index = load16();
|
||||
width = load16();
|
||||
height = load16();
|
||||
} else {
|
||||
index = _vm->_parse->parseValExpr();
|
||||
width = _vm->_parse->parseValExpr();
|
||||
height = _vm->_parse->parseValExpr();
|
||||
}
|
||||
|
||||
flag = load16();
|
||||
_vm->_draw->initSpriteSurf(index, width, height, flag ? 2 : 0);
|
||||
|
|
|
@ -500,7 +500,7 @@ void Inter_v2::setupOpcodes() {
|
|||
/* 24 */
|
||||
OPCODE(o1_putPixel),
|
||||
OPCODE(o2_goblinFunc),
|
||||
OPCODE(o2_createSprite),
|
||||
OPCODE(o1_createSprite),
|
||||
OPCODE(o1_freeSprite),
|
||||
/* 28 */
|
||||
{NULL, ""},
|
||||
|
@ -1852,23 +1852,6 @@ bool Inter_v2::o2_goblinFunc(OpFuncParams ¶ms) {
|
|||
return false;
|
||||
}
|
||||
|
||||
bool Inter_v2::o2_createSprite(OpFuncParams ¶ms) {
|
||||
int16 index;
|
||||
int16 width, height;
|
||||
int16 flag;
|
||||
|
||||
index = load16();
|
||||
width = load16();
|
||||
height = load16();
|
||||
|
||||
_vm->_draw->adjustCoords(0, &width, &height);
|
||||
|
||||
flag = load16();
|
||||
_vm->_draw->initSpriteSurf(index, width, height, flag);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Inter_v2::o2_stopSound(OpFuncParams ¶ms) {
|
||||
int16 expr;
|
||||
|
||||
|
|
|
@ -489,7 +489,7 @@ void Inter_v3::setupOpcodes() {
|
|||
/* 24 */
|
||||
OPCODE(o1_putPixel),
|
||||
OPCODE(o2_goblinFunc),
|
||||
OPCODE(o2_createSprite),
|
||||
OPCODE(o1_createSprite),
|
||||
OPCODE(o1_freeSprite),
|
||||
/* 28 */
|
||||
{NULL, ""},
|
||||
|
|
|
@ -490,7 +490,7 @@ void Inter_v4::setupOpcodes() {
|
|||
/* 24 */
|
||||
OPCODE(o1_putPixel),
|
||||
OPCODE(o2_goblinFunc),
|
||||
OPCODE(o2_createSprite),
|
||||
OPCODE(o1_createSprite),
|
||||
OPCODE(o1_freeSprite),
|
||||
/* 28 */
|
||||
{NULL, ""},
|
||||
|
|
|
@ -444,7 +444,7 @@ void Inter_v5::setupOpcodes() {
|
|||
/* 24 */
|
||||
OPCODE(o1_putPixel),
|
||||
OPCODE(o2_goblinFunc),
|
||||
OPCODE(o2_createSprite),
|
||||
OPCODE(o1_createSprite),
|
||||
OPCODE(o1_freeSprite),
|
||||
/* 28 */
|
||||
{NULL, ""},
|
||||
|
|
|
@ -423,7 +423,7 @@ void Inter_v6::setupOpcodes() {
|
|||
/* 24 */
|
||||
OPCODE(o1_putPixel),
|
||||
OPCODE(o2_goblinFunc),
|
||||
OPCODE(o2_createSprite),
|
||||
OPCODE(o1_createSprite),
|
||||
OPCODE(o1_freeSprite),
|
||||
/* 28 */
|
||||
{NULL, ""},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue