diff options
author | Paul Gilbert | 2018-04-09 19:33:31 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-04-09 19:33:31 -0400 |
commit | b13b00deb3b604f6ece5e63c3824100b9ae7cb32 (patch) | |
tree | 02da609f5589a5fecd31b499db798f5db9c9ec73 /engines/xeen/scripts.cpp | |
parent | f52517449591bdc269bec7eecfffdc5439567d33 (diff) | |
download | scummvm-rg350-b13b00deb3b604f6ece5e63c3824100b9ae7cb32.tar.gz scummvm-rg350-b13b00deb3b604f6ece5e63c3824100b9ae7cb32.tar.bz2 scummvm-rg350-b13b00deb3b604f6ece5e63c3824100b9ae7cb32.zip |
XEEN: Add Patcher class for doing on-the-fly map patches
The first patch is a script patch for Ellinger's Tower Level 2
on the Dark Side. It fixes an incorrect index for a wall item
of a curtain that's meant to be removed
Diffstat (limited to 'engines/xeen/scripts.cpp')
-rw-r--r-- | engines/xeen/scripts.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/xeen/scripts.cpp b/engines/xeen/scripts.cpp index 464130be69..298dead111 100644 --- a/engines/xeen/scripts.cpp +++ b/engines/xeen/scripts.cpp @@ -1130,11 +1130,11 @@ bool Scripts::cmdRndDamage(ParamsIterator ¶ms) { bool Scripts::cmdMoveWallObj(ParamsIterator ¶ms) { Map &map = *_vm->_map; - int itemNum = params.readByte(); + int index = params.readByte(); int x = params.readShort(); int y = params.readShort(); - map._mobData._wallItems[itemNum]._position = Common::Point(x, y); + map._mobData._wallItems[index]._position = Common::Point(x, y); return true; } |