1
0
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:
Daniel Evans 2018-06-21 21:17:22 +01:00 committed by GitHub
commit 7cc5731ad1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()) {