Fixed missile shield pierce

This commit is contained in:
Anuken
2018-09-03 09:07:59 -04:00
parent 5129e2ea73
commit 019e22aff2
2 changed files with 10 additions and 2 deletions

View File

@ -26,7 +26,7 @@ allprojects {
appName = 'Mindustry' appName = 'Mindustry'
gdxVersion = '1.9.8' gdxVersion = '1.9.8'
roboVMVersion = '2.3.0' roboVMVersion = '2.3.0'
uCoreVersion = 'b6c84cdaad80c58267bdb0fc91d7197bb2252247' uCoreVersion = 'f311d4683c798c2b0e5967938edb7a52a1294119'
getVersionString = { getVersionString = {
String buildVersion = getBuildVersion() String buildVersion = getBuildVersion()

View File

@ -163,7 +163,7 @@ public class Bullet extends BulletEntity<BulletType> implements TeamTrait, SyncT
@Override @Override
public boolean collides(SolidTrait other){ public boolean collides(SolidTrait other){
return type.collides && super.collides(other); return type.collides && super.collides(other) && !supressCollision;
} }
@Override @Override
@ -208,6 +208,14 @@ public class Bullet extends BulletEntity<BulletType> implements TeamTrait, SyncT
supressCollision = false; supressCollision = false;
} }
@Override
protected void updateLife(){
if(time >= type.lifetime){
if(!supressCollision) type.despawned(this);
remove();
}
}
@Override @Override
public void reset(){ public void reset(){
super.reset(); super.reset();