summaryrefslogtreecommitdiffstats
path: root/src/core/AnimViewer.cpp
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-02-08 11:24:49 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2021-02-08 11:24:49 +0100
commit94eed339409256ae92bc0a9c6f2f0ab6f036fae7 (patch)
treeac5ed50ebc73496ec00a4ad03b9ab2e7664affec /src/core/AnimViewer.cpp
parentDetect joystick menu for XInput (diff)
parentMerge branch 'miami' of https://github.com/GTAmodding/re3 into VCSanim (diff)
downloadre3-94eed339409256ae92bc0a9c6f2f0ab6f036fae7.tar
re3-94eed339409256ae92bc0a9c6f2f0ab6f036fae7.tar.gz
re3-94eed339409256ae92bc0a9c6f2f0ab6f036fae7.tar.bz2
re3-94eed339409256ae92bc0a9c6f2f0ab6f036fae7.tar.lz
re3-94eed339409256ae92bc0a9c6f2f0ab6f036fae7.tar.xz
re3-94eed339409256ae92bc0a9c6f2f0ab6f036fae7.tar.zst
re3-94eed339409256ae92bc0a9c6f2f0ab6f036fae7.zip
Diffstat (limited to 'src/core/AnimViewer.cpp')
-rw-r--r--src/core/AnimViewer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/AnimViewer.cpp b/src/core/AnimViewer.cpp
index 854ec7d4..562b9c15 100644
--- a/src/core/AnimViewer.cpp
+++ b/src/core/AnimViewer.cpp
@@ -245,7 +245,7 @@ CAnimViewer::Update(void)
if (modelInfo->GetModelType() == MITYPE_PED) {
int animGroup = ((CPedModelInfo*)modelInfo)->m_animGroup;
- if (animId > ANIM_IDLE_STANCE)
+ if (animId > ANIM_STD_IDLE)
animGroup = ASSOCGRP_STD;
if (reloadIFP) {
@@ -334,14 +334,14 @@ CAnimViewer::Update(void)
CMessages::AddMessage(gUString, 1000, 0);
} else if (pad->GetCircleJustDown()) {
- PlayAnimation(pTarget->GetClump(), animGroup, ANIM_IDLE_STANCE);
+ PlayAnimation(pTarget->GetClump(), animGroup, ANIM_STD_IDLE);
AsciiToUnicode("Idle animation playing", gUString);
CMessages::AddMessage(gUString, 1000, 0);
} else if (pad->GetDPadUpJustDown()) {
animId--;
if (animId < 0) {
- animId = NUM_STD_ANIMS - 1;
+ animId = ANIM_STD_NUM - 1;
}
PlayAnimation(pTarget->GetClump(), animGroup, (AnimationId)animId);
@@ -350,7 +350,7 @@ CAnimViewer::Update(void)
CMessages::AddMessage(gUString, 1000, 0);
} else if (pad->GetDPadDownJustDown()) {
- animId = (animId == (NUM_STD_ANIMS - 1) ? 0 : animId + 1);
+ animId = (animId == (ANIM_STD_NUM - 1) ? 0 : animId + 1);
PlayAnimation(pTarget->GetClump(), animGroup, (AnimationId)animId);
sprintf(gString, "Current anim: %d", animId);