integer parsing fix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1532 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2007-12-30 11:12:38 +00:00
parent f86790daa2
commit 170ee1a735
+1 -1
View File
@@ -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