summaryrefslogtreecommitdiffstats
path: root/src/vehicles
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-02-02 13:19:19 +0100
committerGitHub <noreply@github.com>2020-02-02 13:19:19 +0100
commit2c0b67c92fbf0a5f8339615155071f9fcc24a83e (patch)
treee67f4fc16a93cbe6be527c87db3b1a41e3961173 /src/vehicles
parentMerge remote-tracking branch 'upstream/master' (diff)
downloadre3-2c0b67c92fbf0a5f8339615155071f9fcc24a83e.tar
re3-2c0b67c92fbf0a5f8339615155071f9fcc24a83e.tar.gz
re3-2c0b67c92fbf0a5f8339615155071f9fcc24a83e.tar.bz2
re3-2c0b67c92fbf0a5f8339615155071f9fcc24a83e.tar.lz
re3-2c0b67c92fbf0a5f8339615155071f9fcc24a83e.tar.xz
re3-2c0b67c92fbf0a5f8339615155071f9fcc24a83e.tar.zst
re3-2c0b67c92fbf0a5f8339615155071f9fcc24a83e.zip
Diffstat (limited to '')
-rw-r--r--src/vehicles/Automobile.cpp2
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);