mirror of
https://github.com/SWG-Source/src.git
synced 2026-07-29 23:15:56 -04:00
moar warning fixes
This commit is contained in:
@@ -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