diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-02-02 13:22:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-02 13:22:17 +0100 |
commit | c794b59a7cb7e56af8ea706c6c9dff7dfbea5f22 (patch) | |
tree | 282926f2bb69e18d9f5bff41975fb437563b408f | |
parent | fixed SET_BOAT_CRUISE_SPEED (diff) | |
download | re3-c794b59a7cb7e56af8ea706c6c9dff7dfbea5f22.tar re3-c794b59a7cb7e56af8ea706c6c9dff7dfbea5f22.tar.gz re3-c794b59a7cb7e56af8ea706c6c9dff7dfbea5f22.tar.bz2 re3-c794b59a7cb7e56af8ea706c6c9dff7dfbea5f22.tar.lz re3-c794b59a7cb7e56af8ea706c6c9dff7dfbea5f22.tar.xz re3-c794b59a7cb7e56af8ea706c6c9dff7dfbea5f22.tar.zst re3-c794b59a7cb7e56af8ea706c6c9dff7dfbea5f22.zip |
-rw-r--r-- | src/vehicles/Automobile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp index ddb75d84..d6032457 100644 --- a/src/vehicles/Automobile.cpp +++ b/src/vehicles/Automobile.cpp @@ -4328,7 +4328,7 @@ CAutomobile::RemoveBonnetInPedCollision(void) { CObject *obj; - if(Damage.GetDoorStatus(DOOR_BONNET) != DOOR_STATUS_SWINGING && + if(Damage.GetDoorStatus(DOOR_BONNET) == DOOR_STATUS_SWINGING && Doors[DOOR_BONNET].RetAngleWhenOpen()*0.4f < Doors[DOOR_BONNET].m_fAngle){ // BUG? why not COMPGROUP_BONNET? obj = SpawnFlyingComponent(CAR_BONNET, COMPGROUP_DOOR); |