diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-26 16:05:31 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-26 16:05:31 +0100 |
commit | ac938f1a9f5c140a22bf7c3ae1bb4571f55e0236 (patch) | |
tree | be99aaa073a85e06a6ef6311a65e41b269f5a5e7 /FICS/formula.c | |
parent | 4ff6fd48de76577cf98786358b856c4d1d045395 (diff) |
Deleted trailing whitespace characters
Diffstat (limited to 'FICS/formula.c')
-rw-r--r-- | FICS/formula.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/FICS/formula.c b/FICS/formula.c index a8487a0..aabcd5e 100644 --- a/FICS/formula.c +++ b/FICS/formula.c @@ -131,7 +131,7 @@ int Maxtime (game *g, int numMoves, int numPlayers) max = 60 * g->bInitTime + numMoves * g->bIncrement; if ((g->type != TYPE_UNTIMED) && (g->bInitTime == 0)) max +=10; /* 0 x start with ten secs */ - } + } return max; } @@ -198,7 +198,7 @@ int VarToToken (game *g, int clause, char *string, int *i, int *tok, int eval) *tok = you->private; else if (MoveIndexPastString(string, i, "maxtime")) { - if (GetNumberInsideParens(g, clause, i, tok, eval) != ERR_NONE) + if (GetNumberInsideParens(g, clause, i, tok, eval) != ERR_NONE) return (0); *tok = Maxtime (g, *tok, 2); } @@ -325,7 +325,7 @@ int EvalBinaryOp (int *left, int op, game *g, int clause, int *i) } else { - pprintf(g->black, "Dividing by %lf instead or zero in formula.\n", + pprintf(g->black, "Dividing by %lf instead or zero in formula.\n", FUDGE_FACTOR); *left /= FUDGE_FACTOR; return (ERR_NONE); @@ -391,7 +391,7 @@ int ScanForNumber (game *g, int clause, int *i, int op_type, if (!VarToToken (g, clause, string, i, token, eval)) return (ERR_BADVAR); return(ERR_NONE); - } + } else return (ERR_NONESENSE); } } /* end of function ScanForNumber. */ |