mirror of
https://github.com/SWG-Source/src.git
synced 2026-07-28 22:15:49 -04:00
moar warning fixes
This commit is contained in:
@@ -823,7 +823,7 @@ void parseESCstring(char *str, char *targetBuffer, int sizeOfTarget)
|
||||
sPtr++;
|
||||
if (numIndex > 3)
|
||||
{
|
||||
sprintf(err_msg, "Escape sequence Octal numbers greater then\noctal o400 (256 decimal)! [more then 3 digits]", *sPtr);
|
||||
sprintf(err_msg, "Escape sequence Octal numbers greater then\noctal o400 (256 decimal)! [more then 3 digits]");
|
||||
yyerror(err_msg);
|
||||
exitParser = 1;
|
||||
}
|
||||
@@ -841,7 +841,7 @@ void parseESCstring(char *str, char *targetBuffer, int sizeOfTarget)
|
||||
|
||||
if (tempNum > 255)
|
||||
{
|
||||
sprintf(err_msg, "Escape sequence Octal numbers greater then\noctal o400 (256 decimal)!", tempNum);
|
||||
sprintf(err_msg, "Escape sequence Octal numbers greater then\noctal o400 (256 decimal)!");
|
||||
yyerror(err_msg);
|
||||
exitParser = 1;
|
||||
}
|
||||
@@ -865,7 +865,7 @@ void parseESCstring(char *str, char *targetBuffer, int sizeOfTarget)
|
||||
sPtr++;
|
||||
if (numIndex > 3)
|
||||
{
|
||||
sprintf(err_msg, "Escape sequence HEX numbers greater then 0x100\n(256 decimal)! [more then 3 digits]", *sPtr);
|
||||
sprintf(err_msg, "Escape sequence HEX numbers greater then 0x100\n(256 decimal)! [more then 3 digits]");
|
||||
yyerror(err_msg);
|
||||
exitParser = 1;
|
||||
}
|
||||
@@ -883,7 +883,7 @@ void parseESCstring(char *str, char *targetBuffer, int sizeOfTarget)
|
||||
|
||||
if (tempNum > 255)
|
||||
{
|
||||
sprintf(err_msg, "Escape sequence HEX numbers greater then 0x100\n(256 decimal)!", *sPtr);
|
||||
sprintf(err_msg, "Escape sequence HEX numbers greater then 0x100\n(256 decimal)!");
|
||||
yyerror(err_msg);
|
||||
exitParser = 1;
|
||||
}
|
||||
|
||||
@@ -119,7 +119,8 @@ bool ConsoleCommandParserSpaceAi::performParsing(const NetworkId & userId, const
|
||||
{
|
||||
Vector const & position_w = iterTransformList->getPosition_p();
|
||||
|
||||
message += formattedString.sprintf("[%d] %.2f, %.2f, %.2f%s", index++, position_w.x, position_w.y, position_w.z, (index < static_cast<int>(transformList.size())) ? "\n" : "");
|
||||
message += formattedString.sprintf("[%d] %.2f, %.2f, %.2f%s", (index+1), position_w.x, position_w.y, position_w.z, (index < static_cast<int>(transformList.size())) ? "\n" : "");
|
||||
index++;
|
||||
}
|
||||
|
||||
Chat::sendSystemMessage(*serverObject, Unicode::narrowToWide(message.c_str()), Unicode::emptyString);
|
||||
|
||||
@@ -1648,7 +1648,7 @@ void AiShipController::sendDebugAiToClients(AiDebugString & aiDebugString)
|
||||
float const turretMissChance = getTurretMissChance() * 100.0f;
|
||||
float const turretMissAngleDegrees = convertRadiansToDegrees(getTurretMissAngle());
|
||||
|
||||
aiDebugString.addText(formattedString.sprintf("turret miss(%.0f%% @ %.0f°)\n", turretMissChance, turretMissAngleDegrees));
|
||||
aiDebugString.addText(formattedString.sprintf("turret miss(%.0f%% @ %.0f)\n", turretMissChance, turretMissAngleDegrees));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user