1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 03:12:36 +01:00

Add right side animations to vehicle entering / exit list

This commit is contained in:
Daniel Evans 2016-08-12 23:31:04 +01:00
parent 9ac62d6521
commit e7d14ffc25

View File

@ -437,8 +437,11 @@ bool CharacterObject::enterVehicle(VehicleObject* vehicle, size_t seat)
bool CharacterObject::isEnteringOrExitingVehicle() const
{
return animator->getAnimation(AnimIndexAction) == animations.car_getout_lhs ||
animator->getAnimation(AnimIndexAction) == animations.car_getin_lhs;
auto a = animator->getAnimation(AnimIndexAction);
return a == animations.car_getout_lhs ||
a == animations.car_getin_lhs ||
a == animations.car_getout_rhs ||
a == animations.car_getin_rhs;
}
bool CharacterObject::isStopped() const