Commit Graph
14 Commits
Author SHA1 Message Date
Thierry Crozat 2389e64223 AGS: Fixed character's loop fixup in UpdateMoveAndAnim()
Was broken by 7a1ee192e2
Fixes bug #13477 AGS: Heroine's Quest intro shows portrait bug

This old commit was trying to fix a problem in old game(s), when
character was set to a loop with no frames. In such case the old
engine would seek for the first loop with frames, starting with 0.
The condition for doing so was made incorrect though: instead of
testing simply for a empty loop, it tested for frame number being
outside of the current loop's frame range.
This broke games where e.g. some walking view's loops were shorter
than the others.

A replacement is a condition that tests exactly for an empty loop
instead. The frame exceeding a loop's frame count is fixed later
along the way, so it's not a problem here.

From upstream ac73a555d737fb3f759cc7da9eeaf488a3bdcb2f
2022-06-21 23:28:01 +01:00
Paul Gilbert d39c6cb31f AGS: Added "sound volume" param to all Animate() functions
From upstream 926220f9706baafa80d05ff6264f7fa13296dc16
2022-05-10 21:17:59 -07:00
Paul Gilbert f5c7246752 AGS: Use CycleViewAnim() for character's animation
From upstream 814d489f3a67cac4956b6590618377693571add9
2022-04-22 20:15:47 -07:00
Paul Gilbert 14209fafed AGS: Removed arbitrary character followers limit
From upstream c64850badd610b3ce90821a080e7e6b04d65193e
2022-04-13 21:55:19 -07:00
Paul Gilbert dbcebe50d4 AGS: Added Character.IdleAnimationDelay and editor property
From upstream 73b2aaaa859f92b5a73d5ab78118653974529402
2022-04-10 19:39:09 -07:00
Paul Gilbert cd081450af AGS: Fix potentially invalid frame during Character turning
From upstream dffea8cf0dbba1431ec1b07c724a5d362ae8179b
2022-04-08 22:17:51 -07:00
Paul Gilbert 02a6600080 AGS: Fix potentially invalid frame during Character turning
From upstream 84faeccb049883f6d55c0ba34c6a9f02f6bbdbe8
2022-03-19 21:25:10 -07:00
Paul Gilbert a3dda03cf1 AGS: Store Views in std::vector
From upstream 095db88ae0f1acceb298f793a2e1b81dbe06fcff
2022-03-18 21:29:56 -07:00
Paul Gilbert 4b68aa31f9 AGS: Process idleview based on real game speed, not hardcoded 40 fps
From upstream 2e0d5116bce07a098166d6f6311fc87b27352e47
2022-03-17 21:49:24 -07:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Paul Gilbert d90cb0d203 AGS: Removed excessive headers containing random group of includes
From upstream 9e5149457a4638694fb1366b3fa59b08816f522c
2021-08-17 21:31:56 -07:00
Paul Gilbert d86792075c AGS: Fixed some old games crashing because of empty views
From upstream 116e6d928eb335740d4c1801b4cb25fc5ba48905
2021-07-31 14:34:09 -07:00
Paul Gilbert 7a1ee192e2 AGS: Fixup character's view loop in update, prevent having no frame
From upstream 2ac1b258db203b62ba0613c979d7a092b51e441f
2021-07-27 22:03:34 -07:00
Paul Gilbert 701396361c AGS: Import of fresh codebase 2021-06-13 21:08:44 -07:00