fix: version displaying.
This commit is contained in:
parent
f15a115b0a
commit
9c85913a0f
4 changed files with 5 additions and 5 deletions
|
|
@ -151,7 +151,7 @@ int BotControl::cmdWeaponMode () {
|
|||
int BotControl::cmdVersion () {
|
||||
auto &build = product.build;
|
||||
|
||||
msg ("%s v%s.%s (ID %s)", product.name, product.version, build.count, build.id);
|
||||
msg ("%s v%s (ID %s)", product.name, product.version, build.id);
|
||||
msg (" by %s (%s)", product.author, product.email);
|
||||
msg (" %s", product.url);
|
||||
msg ("compiled: %s on %s with %s", product.dtime, build.machine, build.compiler);
|
||||
|
|
|
|||
|
|
@ -810,7 +810,7 @@ bool Game::postload () {
|
|||
if (is (GameFlags::Metamod)) {
|
||||
gameVersionFlags.push ("Metamod");
|
||||
}
|
||||
print ("\n%s v%s.%s successfully loaded for game: Counter-Strike %s.\n\tFlags: %s.\n", product.name, product.version, product.build.count, gameVersionStr, gameVersionFlags.empty () ? "None" : String::join (gameVersionFlags, ", "));
|
||||
print ("\n%s v%s successfully loaded for game: Counter-Strike %s.\n\tFlags: %s.\n", product.name, product.version, gameVersionStr, gameVersionFlags.empty () ? "None" : String::join (gameVersionFlags, ", "));
|
||||
};
|
||||
|
||||
if (plat.android) {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
#include <yapb.h>
|
||||
|
||||
ConVar cv_version ("yb_version", strings.format ("%s.%s", product.version, product.build.count), Var::ReadOnly);
|
||||
ConVar cv_version ("yb_version", product.version.chars (), Var::ReadOnly);
|
||||
|
||||
gamefuncs_t dllapi;
|
||||
enginefuncs_t engfuncs;
|
||||
|
|
|
|||
|
|
@ -290,7 +290,7 @@ void BotSupport::checkWelcome () {
|
|||
|
||||
MessageWriter (MSG_ONE, msgs.id (NetMsg::TextMsg), nullptr, receiveEntity)
|
||||
.writeByte (HUD_PRINTTALK)
|
||||
.writeString (strings.format ("----- %s v%s (Build: %s), {%s}, (c) %s, by %s (%s)-----", product.name, product.version, product.build.count, product.date, product.year, product.author, product.url));
|
||||
.writeString (strings.format ("----- %s v%s {%s}, (c) %s, by %s (%s)-----", product.name, product.version, product.date, product.year, product.author, product.url));
|
||||
|
||||
MessageWriter (MSG_ONE, SVC_TEMPENTITY, nullptr, receiveEntity)
|
||||
.writeByte (TE_TEXTMESSAGE)
|
||||
|
|
@ -310,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, authorStr));
|
||||
.writeString (strings.format ("\nHello! You are playing with %s v%s\nDevised by %s\n\n%s", product.name, product.version, product.author, authorStr));
|
||||
|
||||
m_welcomeReceiveTime = 0.0f;
|
||||
m_needToSendWelcome = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue