forked from Mirrors/openclonk
Remove unintentional semicolon after if()
Also changed some other instances of the if(); pattern to use an empty block in order to suppress the new warning.alut-include-path
parent
a33d98ee71
commit
7284d65685
|
@ -299,8 +299,8 @@ private func UpdateSwim()
|
|||
|
||||
// the animation to play depends on the speed of the squid
|
||||
var is_fast = velocity >= SQUID_SWIM_MAX_SPEED/3;
|
||||
if (is_fast && !is_in_idle_animation); // no change needed
|
||||
else if (!is_fast && is_in_idle_animation); // ok, too
|
||||
if (is_fast && !is_in_idle_animation) {} // no change needed
|
||||
else if (!is_fast && is_in_idle_animation) {} // ok, too
|
||||
else
|
||||
{
|
||||
var current_weight = GetAnimationWeight(movement_animation_node);
|
||||
|
|
|
@ -317,7 +317,7 @@ private func Precipitation()
|
|||
// Precipitaion: water or snow.
|
||||
if (rain > 0)
|
||||
{
|
||||
if (RainDrop());
|
||||
if (RainDrop())
|
||||
rain--;
|
||||
}
|
||||
// If out of liquids, skip mode.
|
||||
|
|
|
@ -189,8 +189,6 @@ func FxLifeTimerTimer(target, effect, time)
|
|||
var t = GetActionTarget();
|
||||
if(!t) return;
|
||||
|
||||
if(!Random(10))
|
||||
;//Die();
|
||||
if(!Random(10))
|
||||
{
|
||||
if(attached_flower != -1)
|
||||
|
|
|
@ -128,7 +128,9 @@ public func FxIntAirshipMovementTimer(object target, proplist effect, int time)
|
|||
|
||||
// Wind movement if in the air
|
||||
if (!GetContact(-1))
|
||||
/* TODO: Implement */;
|
||||
{
|
||||
/* TODO: Implement */
|
||||
}
|
||||
|
||||
// Fall down if there no pilot and ground.
|
||||
if (!HasAirshipPilot())
|
||||
|
|
Loading…
Reference in New Issue