mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 07:04:36 +00:00
test
working test without scanstring changes
This commit is contained in:
parent
d8411b4a58
commit
0d4c335231
4 changed files with 12 additions and 12 deletions
|
|
@ -245,16 +245,7 @@ public:
|
|||
if (type == ConsoleValueType::cvSTEntry)
|
||||
return s == StringTable->EmptyString() ? 0 : dAtoi(s);
|
||||
if (type == ConsoleValueType::cvString)
|
||||
{
|
||||
if (dStricmp(s, "false") == 0) {
|
||||
return 0;
|
||||
}
|
||||
else if (dStricmp(s, "true") == 0) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
return dIsdigit(*s) ? dAtoi(s) : s == StringTable->EmptyString() ? 0 : 1;
|
||||
}
|
||||
return dStrcmp(s, "") == 0 ? 0 : dAtoi(s);
|
||||
|
||||
return dAtoi(getConsoleData());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue