mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-23 12:44:02 +00:00

This was broken by eb376e6 1. Treating negative loop and frame as an instruction to keep latest object's loop and frame values was introduced around AGS 2.70 by Object.SetView(), but this behavior also propagated to SetObjectFrame() command. 2. Removed clamping of loop and frame values inside Object.SetView(), as that prevented applying a historical behavior of SetObjectFrame(), where any invalid loop and frame value would be changed to just 0. 3. Don't quit the game in case of invalid loop and frame, but fallback to default 0 value, and print a warning. Also removed some redundant assignments to RoomObject, possibly a result of a commit merge from another branch. From upstream 66bb18f0224eebfb2a130395e9b18ce59b584e13 This is the 3.6.1 branch, but the fix is required to solve a game-breaking bug in Chronicle of Innsmouth