mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 17:33:05 +00:00
SAGA2: Fix bugs in the original with the combat action in the savegame
This commit is contained in:
parent
83fad9d0f1
commit
405b8cc230
@ -772,7 +772,7 @@ void *MotionTask::restore(void *buf) {
|
||||
actionCounter = *((int16 *)buf);
|
||||
buf = (int16 *)buf + 1;
|
||||
|
||||
if (motionType = motionTypeOneHandedParry) {
|
||||
if (motionType == motionTypeOneHandedParry) {
|
||||
// Restore the combat sub-motion type
|
||||
combatMotionType = *((uint8 *)buf);
|
||||
buf = (uint8 *)buf + 1;
|
||||
@ -911,7 +911,7 @@ int32 MotionTask::archiveSize(void) {
|
||||
+ sizeof(d.defenseFlags)
|
||||
+ sizeof(actionCounter);
|
||||
|
||||
if (motionType = motionTypeOneHandedParry)
|
||||
if (motionType == motionTypeOneHandedParry)
|
||||
size += sizeof(combatMotionType);
|
||||
} else if (motionType == motionTypeDodge
|
||||
|| motionType == motionTypeAcceptHit
|
||||
@ -1170,7 +1170,7 @@ void *MotionTask::archive(void *buf) {
|
||||
*((int16 *)buf) = actionCounter;
|
||||
buf = (int16 *)buf + 1;
|
||||
|
||||
if (motionType = motionTypeOneHandedParry) {
|
||||
if (motionType == motionTypeOneHandedParry) {
|
||||
// Store the combat sub-motion type
|
||||
*((uint8 *)buf) = combatMotionType;
|
||||
buf = (uint8 *)buf + 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user