mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-01 06:58:34 +00:00
AGI: Ego motion type change on newroom only agi3
Ego motion type change on newRoom() was only done for AGI3
This commit is contained in:
parent
cb3b5d5e31
commit
26cb39beee
@ -89,7 +89,9 @@ void AgiEngine::newRoom(int16 newRoomNr) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (getVersion() < 0x2000) {
|
||||
uint16 agiVersion = getVersion();
|
||||
|
||||
if (agiVersion < 0x2000) {
|
||||
warning("STUB: NewRoom(%d)", newRoomNr);
|
||||
|
||||
screenObjEgo->flags &= ~fDidntMove;
|
||||
@ -98,9 +100,12 @@ void AgiEngine::newRoom(int16 newRoomNr) {
|
||||
setView(screenObjEgo, screenObjEgo->currentViewNr);
|
||||
|
||||
} else {
|
||||
if (screenObjEgo->motionType == kMotionEgo) {
|
||||
screenObjEgo->motionType = kMotionNormal;
|
||||
_game.vars[VM_VAR_EGO_DIRECTION] = 0;
|
||||
if (agiVersion >= 0x3000) {
|
||||
// this was only done in AGI3
|
||||
if (screenObjEgo->motionType == kMotionEgo) {
|
||||
screenObjEgo->motionType = kMotionNormal;
|
||||
_game.vars[VM_VAR_EGO_DIRECTION] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
_game.vars[VM_VAR_BORDER_TOUCH_EGO] = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user