diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-02-02 13:22:35 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-02-02 13:22:35 +0100 |
commit | 911f3360dee8888b619d84af02ffd0a10fc20361 (patch) | |
tree | e67f4fc16a93cbe6be527c87db3b1a41e3961173 /src/vehicles | |
parent | Merge remote-tracking branch 'upstream/master' (diff) | |
parent | fixed firetruck crash (diff) | |
download | re3-911f3360dee8888b619d84af02ffd0a10fc20361.tar re3-911f3360dee8888b619d84af02ffd0a10fc20361.tar.gz re3-911f3360dee8888b619d84af02ffd0a10fc20361.tar.bz2 re3-911f3360dee8888b619d84af02ffd0a10fc20361.tar.lz re3-911f3360dee8888b619d84af02ffd0a10fc20361.tar.xz re3-911f3360dee8888b619d84af02ffd0a10fc20361.tar.zst re3-911f3360dee8888b619d84af02ffd0a10fc20361.zip |
Diffstat (limited to 'src/vehicles')
-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); |