From 23b3ec14553d87b3b238ba156355cc231c5d84f2 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Tue, 20 May 2008 09:16:53 +0000 Subject: [PATCH] floating point value fix git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2062 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 234d45e6..97bdfcb8 100644 --- a/source/src/command.cpp +++ b/source/src/command.cpp @@ -255,7 +255,7 @@ char *executeret(const char *p) // all evaluation hap ident *id = idents->access(c); if(!id) { - if(!isdigit(*c) && ((*c!='+' && *c!='-') || (*c && !isdigit(c[1])))) + if(!isdigit(*c) && ((*c!='+' && *c!='-' && *c!='.') || !isdigit(c[1]))) { conoutf("unknown command: %s", c); }