mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Merge branch 'master' into console-func-refactor
Conflicts: Engine/source/app/net/net.cpp Engine/source/console/astNodes.cpp Engine/source/console/compiledEval.cpp Engine/source/console/console.h Engine/source/console/consoleInternal.h Engine/source/console/engineAPI.h
This commit is contained in:
commit
b507dc9555
6487 changed files with 315149 additions and 609761 deletions
|
|
@ -1119,7 +1119,6 @@ void NetConnection::validateSendString(const char *str)
|
|||
|
||||
void NetConnection::packString(BitStream *stream, const char *str)
|
||||
{
|
||||
char buf[16];
|
||||
if(!*str)
|
||||
{
|
||||
stream->writeInt(NullString, 2);
|
||||
|
|
@ -1133,6 +1132,7 @@ void NetConnection::packString(BitStream *stream, const char *str)
|
|||
}
|
||||
if(str[0] == '-' || (str[0] >= '0' && str[0] <= '9'))
|
||||
{
|
||||
char buf[16];
|
||||
S32 num = dAtoi(str);
|
||||
dSprintf(buf, sizeof(buf), "%d", num);
|
||||
if(!dStrcmp(buf, str))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue