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
Nicolas Hake 2017-02-05 14:22:09 +01:00
parent a33d98ee71
commit 7284d65685
4 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -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.

View File

@ -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)

View File

@ -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())