1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-13 08:34:32 +02:00

#14 fix lookAt for enemies

This commit is contained in:
XProger
2017-08-31 05:09:19 +03:00
parent b311406f87
commit d8b2429089

View File

@@ -189,6 +189,10 @@ struct Enemy : Character {
return true; return true;
} }
virtual void lookAt(Controller *target) {
Character::lookAt(targetInView ? target : NULL);
}
int turn(float delta, float speed) { int turn(float delta, float speed) {
float w = speed * Core::deltaTime; float w = speed * Core::deltaTime;