[Scummvm-tracker] [ScummVM] #10057: TITANIC: Phonograph has dissapearing horn after getting ear
Paul Gilbert
trac at scummvm.org
Sun Aug 6 04:41:39 CEST 2017
#10057: TITANIC: Phonograph has dissapearing horn after getting ear
-------------------------------+-----------------------------
Reporter: dafioram | Owner: dreammaster
Type: defect | Status: closed
Priority: low | Component: Engine: Titanic
Resolution: fixed | Keywords:
Game: Starship Titanic |
-------------------------------+-----------------------------
Changes (by dreammaster):
* status: pending => closed
* resolution: worksforme => fixed
Comment:
You're right. The trick was to save and load the game, then save and load
again. Turns out the replacement ear was present and visible, it just was
incorrectly defaulting to frame 0 of the animation (movie) sequence that
makes it appear.
When saving an object with an attached movie, a game object will save the
currently active frame, which for the replacement ear was 30, for the end
of the appearance sequence. But the original code had a bug in that if you
loaded the save, it would store the frame number in preparation for when
the movie is loaded (when the view is shown). But if you then save the
game yet again before the object's movie is loaded, it will again try to
get the current frame for the (non loaded) movie, and save 0 to the second
savegame. So the '30' from the first savegame was lost. I've added in a
workaround to fix the problem.
--
Ticket URL: <https://bugs.scummvm.org/ticket/10057#comment:5>
ScummVM <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list