From 170ee1a735609103e825b34e0e52eb4f392762c8 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sun, 30 Dec 2007 11:12:38 +0000 Subject: [PATCH] integer parsing fix git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1532 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/command.cpp b/source/src/command.cpp index 90fff314..561a7251 100644 --- a/source/src/command.cpp +++ b/source/src/command.cpp @@ -249,7 +249,7 @@ char *executeret(const char *p) // all evaluation hap ident *id = idents->access(c); if(!id) { - if(!isdigit(*c)) conoutf("unknown command: %s", c); + if(!isdigit(*c) && ((*c!='+' && *c!='-') || !isdigit(c[1]))) conoutf("unknown command: %s", c); setretval(newstring(c)); } else