Use Null-Propagation Operator
This commit is contained in:
@@ -197,8 +197,7 @@ namespace OpenRA.Mods.Common.Projectiles
|
||||
|
||||
public void Tick(World world)
|
||||
{
|
||||
if (anim != null)
|
||||
anim.Tick();
|
||||
anim?.Tick();
|
||||
|
||||
lastPos = pos;
|
||||
pos = WPos.LerpQuadratic(source, target, angle, ticks, length);
|
||||
|
||||
Reference in New Issue
Block a user