build: remove sse3 option, as it's cause bot to be not loadable on some KVM hypervisors.

graph: store only author name inside author string.
This commit is contained in:
ds 2020-10-01 10:43:51 +03:00
commit ced06c36cd
4 changed files with 14 additions and 7 deletions

View file

@ -1783,10 +1783,10 @@ bool BotGraph::loadGraphData () {
}
if ((outOptions & StorageOption::Official) || strncmp (exten.author, "official", 8) == 0 || strlen (exten.author) < 2) {
m_tempStrings.assign ("Using Official Navigation Graph");
m_tempStrings.assign (product.folder);
}
else {
m_tempStrings.assignf ("Navigation Graph Authored By: %s", exten.author);
m_tempStrings.assign (exten.author);
}
initNodesTypes ();
loadPathMatrix ();
@ -2853,6 +2853,7 @@ BotGraph::BotGraph () {
m_needsVisRebuild = false;
m_jumpLearnNode = false;
m_hasChanged = false;
m_narrowChecked = false;
m_timeJumpStarted = 0.0f;
m_lastJumpNode = kInvalidNodeIndex;

View file

@ -281,6 +281,12 @@ void BotSupport::checkWelcome () {
if (!game.is (GameFlags::Mobility | GameFlags::Xash3D)) {
game.serverCommand ("speak \"%s\"", m_sentences.random ());
}
String authorStr = "Official Navigation Graph";
StringRef graphAuthor = graph.getAuthor ();
if (!graphAuthor.startsWith (product.folder)) {
authorStr.assignf ("Navigation Graph by: %s", graphAuthor);
}
MessageWriter (MSG_ONE, msgs.id (NetMsg::TextMsg), nullptr, receiveEntity)
.writeByte (HUD_PRINTTALK)
@ -304,7 +310,7 @@ void BotSupport::checkWelcome () {
.writeShort (MessageWriter::fu16 (2.0f, 8.0f))
.writeShort (MessageWriter::fu16 (6.0f, 8.0f))
.writeShort (MessageWriter::fu16 (0.1f, 8.0f))
.writeString (strings.format ("\nHello! You are playing with %s v%s (Revision: %s)\nDevised by %s\n\n%s", product.name, product.version, product.build.count, product.author, graph.getAuthor ()));
.writeString (strings.format ("\nHello! You are playing with %s v%s (Revision: %s)\nDevised by %s\n\n%s", product.name, product.version, product.build.count, product.author, authorStr));
m_welcomeReceiveTime = 0.0f;
m_needToSendWelcome = false;