mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-12 16:14:25 +02:00
#14 fix lookAt for enemies
This commit is contained in:
@@ -189,6 +189,10 @@ struct Enemy : Character {
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual void lookAt(Controller *target) {
|
||||
Character::lookAt(targetInView ? target : NULL);
|
||||
}
|
||||
|
||||
int turn(float delta, float speed) {
|
||||
float w = speed * Core::deltaTime;
|
||||
|
||||
|
Reference in New Issue
Block a user