Big net::msg conversion
This commit is contained in:
+8
-7
@@ -445,15 +445,16 @@ namespace command {
|
||||
if (cls.demoplayback)
|
||||
return; // not really connected
|
||||
|
||||
MSG_WriteByte(&cls.message, clc_stringcmd);
|
||||
cls.message.write_byte(clc_stringcmd);
|
||||
if (q_strcasecmp(argv(0).value_or("").c_str(), "cmd") != 0) {
|
||||
SZ_Print(&cls.message, argv(0).value_or("").c_str());
|
||||
SZ_Print(&cls.message, " ");
|
||||
if (argc() > 1) {
|
||||
cls.message.write_string(std::format("{} {}", argv(0).value(), args()));
|
||||
} else {
|
||||
cls.message.write_string(std::format("{} \n", argv(0).value()));
|
||||
}
|
||||
} else {
|
||||
cls.message.write_string("\n");
|
||||
}
|
||||
if (argc() > 1)
|
||||
SZ_Print(&cls.message, args().c_str());
|
||||
else
|
||||
SZ_Print(&cls.message, "\n");
|
||||
}
|
||||
|
||||
definition_view get_commands() {
|
||||
|
||||
Reference in New Issue
Block a user