diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2019-11-09 14:44:36 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2019-11-09 14:44:36 +0100 |
commit | 5ef291ddf27aed2c27b39c3c30a9d5d27f7548b9 (patch) | |
tree | 710f5904ec705a30d64a568ce5f3ede0e2d91690 /src/vehicles/Automobile.cpp | |
parent | script stubs (diff) | |
parent | Fix link to config.h in readme (diff) | |
download | re3-5ef291ddf27aed2c27b39c3c30a9d5d27f7548b9.tar re3-5ef291ddf27aed2c27b39c3c30a9d5d27f7548b9.tar.gz re3-5ef291ddf27aed2c27b39c3c30a9d5d27f7548b9.tar.bz2 re3-5ef291ddf27aed2c27b39c3c30a9d5d27f7548b9.tar.lz re3-5ef291ddf27aed2c27b39c3c30a9d5d27f7548b9.tar.xz re3-5ef291ddf27aed2c27b39c3c30a9d5d27f7548b9.tar.zst re3-5ef291ddf27aed2c27b39c3c30a9d5d27f7548b9.zip |
Diffstat (limited to 'src/vehicles/Automobile.cpp')
-rw-r--r-- | src/vehicles/Automobile.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp index a077bba4..0f5ff811 100644 --- a/src/vehicles/Automobile.cpp +++ b/src/vehicles/Automobile.cpp @@ -2474,8 +2474,8 @@ CAutomobile::TankControl(void) int lifeSpan = 250; if(m_vecMoveSpeed.Magnitude() > 0.08f){ lifeSpan = 125; - flashPos.x += 0.5f*m_vecMoveSpeed.x; - flashPos.y += 0.5f*m_vecMoveSpeed.y; + flashPos.x += 5.0f*m_vecMoveSpeed.x; + flashPos.y += 5.0f*m_vecMoveSpeed.y; } CParticle::AddParticle(PARTICLE_GUNFLASH, flashPos, nullDir, nil, 0.4f, black, 0, 0, 0, lifeSpan); flashPos += 0.3f*shotDir; @@ -4210,7 +4210,7 @@ CAutomobile::SpawnFlyingComponent(int32 component, uint32 type) if(atomic == nil) return nil; - obj = new CObject; + obj = new CObject(); if(obj == nil) return nil; |