summaryrefslogtreecommitdiffstats
path: root/src/vehicles
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2019-11-05 00:04:26 +0100
committereray orçunus <erayorcunus@gmail.com>2019-11-05 01:52:06 +0100
commitd5619fb5aedb62b4519a6bdfa4a7ed4bd4265e84 (patch)
treeeed9cf112b4a622aac232242d0381e24db817561 /src/vehicles
parentMerge pull request #265 from erorcun/erorcun (diff)
downloadre3-d5619fb5aedb62b4519a6bdfa4a7ed4bd4265e84.tar
re3-d5619fb5aedb62b4519a6bdfa4a7ed4bd4265e84.tar.gz
re3-d5619fb5aedb62b4519a6bdfa4a7ed4bd4265e84.tar.bz2
re3-d5619fb5aedb62b4519a6bdfa4a7ed4bd4265e84.tar.lz
re3-d5619fb5aedb62b4519a6bdfa4a7ed4bd4265e84.tar.xz
re3-d5619fb5aedb62b4519a6bdfa4a7ed4bd4265e84.tar.zst
re3-d5619fb5aedb62b4519a6bdfa4a7ed4bd4265e84.zip
Diffstat (limited to 'src/vehicles')
-rw-r--r--src/vehicles/Automobile.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp
index 0fa8547e..30446894 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;