mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-17 10:30:47 +02:00
minor fix
This commit is contained in:
@@ -862,10 +862,10 @@ struct Gorilla : Enemy {
|
|||||||
virtual void updatePosition() {
|
virtual void updatePosition() {
|
||||||
float angleY = 0.0f;
|
float angleY = 0.0f;
|
||||||
|
|
||||||
if (state == STATE_RUN || state == STATE_WALK)
|
if (state == STATE_RUN)
|
||||||
getTargetInfo(0, NULL, NULL, &angleY, NULL);
|
getTargetInfo(0, NULL, NULL, &angleY, NULL);
|
||||||
|
|
||||||
turn(angleY, state == STATE_RUN ? GORILLA_TURN_FAST : GORILLA_TURN_SLOW);
|
turn(angleY, GORILLA_TURN_FAST);
|
||||||
|
|
||||||
if (state == STATE_DEATH) {
|
if (state == STATE_DEATH) {
|
||||||
animation.overrideMask = 0;
|
animation.overrideMask = 0;
|
||||||
|
Reference in New Issue
Block a user