mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-24 13:13:58 +00:00
SHERLOCK: RT: Fix freeing character _altImages when done with
This commit is contained in:
parent
68499c79c4
commit
df80a92e0a
@ -921,7 +921,7 @@ void TattooPerson::checkWalkGraphics() {
|
||||
// See if we're already using Alternate Graphics
|
||||
if (_altSeq) {
|
||||
// See if the VGS file called for is different than the alternate graphics already loaded
|
||||
if (!_walkSequences[_sequenceNumber]._vgsName.compareToIgnoreCase(_walkSequences[_altSeq - 1]._vgsName)) {
|
||||
if (_walkSequences[_sequenceNumber]._vgsName.compareToIgnoreCase(_walkSequences[_altSeq - 1]._vgsName)) {
|
||||
// Different AltGraphics, Free the old ones
|
||||
freeAltGraphics();
|
||||
}
|
||||
|
@ -579,7 +579,7 @@ OpcodeReturn TattooTalk::cmdSetNPCPosition(const byte *&str) {
|
||||
posX = -1 * (posX - 16384);
|
||||
int posY = (str[2] - 1) * 256 + str[3] - 1;
|
||||
|
||||
people[npcNum]._position = Point32(posX * FIXED_INT_MULTIPLIER, posY * FIXED_INT_MULTIPLIER);
|
||||
person._position = Point32(posX * FIXED_INT_MULTIPLIER, posY * FIXED_INT_MULTIPLIER);
|
||||
if (person._seqTo && person._walkLoaded) {
|
||||
person._walkSequences[person._sequenceNumber]._sequences[person._frameNumber] = person._seqTo;
|
||||
person._seqTo = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user