mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-26 04:12:41 +01:00
Merge pull request #521 from madebr/fixCharacterController
rwengine: check whether character is player
This commit is contained in:
commit
7cc5731ad1
@ -122,7 +122,7 @@ void CharacterObject::destroyActor() {
|
||||
glm::vec3 CharacterObject::updateMovementAnimation(float dt) {
|
||||
glm::vec3 animTranslate{};
|
||||
|
||||
if (controller) {
|
||||
if (isPlayer()) {
|
||||
auto c = static_cast<PlayerController*>(controller);
|
||||
|
||||
if (c->isTalkingOnPayphone()) {
|
||||
|
Loading…
Reference in New Issue
Block a user