]> icculus.org git repositories - btb/d2x.git/commit - main/fireball.c
Skip adjusting damage in cases where it will not be used.
authorKp <kp@valhallalegends.com>
Thu, 25 Aug 2016 23:31:37 +0000 (23:31 +0000)
committerBradley Bell <btb@icculus.org>
Sat, 17 Jul 2021 00:29:54 +0000 (17:29 -0700)
commit57cdb269f7e7e4472bfd836df93bcc0c4143adca
tree96307207d6cc895a25d7910ced9ac79202d983e3
parent4d2780f67dde65b812db65c4ede05eac3e82b62c
Skip adjusting damage in cases where it will not be used.

Fix obvious copy&paste error from Parallax.

    if (condition)
        statement; statement; statement;

is parsed as:

    if (condition)
    {
        statement;
    }
    statement;
    statement;

In context, all three statements were supposed to be guarded by the
condition.  Add braces accordingly.
main/fireball.c