diff options
Diffstat (limited to 'code/botlib/l_script.c')
-rw-r--r-- | code/botlib/l_script.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/code/botlib/l_script.c b/code/botlib/l_script.c index e721891..5e4b128 100644 --- a/code/botlib/l_script.c +++ b/code/botlib/l_script.c @@ -706,14 +706,14 @@ int PS_ReadNumber(script_t *script, token_t *token) { c = *script->script_p; //check for a LONG number - if ( (c == 'l' || c == 'L') // bk001204 - brackets + if ( (c == 'l' || c == 'L') && !(token->subtype & TT_LONG)) { script->script_p++; token->subtype |= TT_LONG; } //end if //check for an UNSIGNED number - else if ( (c == 'u' || c == 'U') // bk001204 - brackets + else if ( (c == 'u' || c == 'U') && !(token->subtype & (TT_UNSIGNED | TT_FLOAT))) { script->script_p++; |