Prints a message to the console if the dedicated server is active
| 774 | |
| 775 | // Prints a message to the console if the dedicated server is active |
| 776 | void PrintDedicatedMessage(const char *fmt, ...) { |
| 777 | if (!Dedicated_server) |
| 778 | return; |
| 779 | |
| 780 | char buf[CON_MAX_STRINGLEN]; |
| 781 | std::va_list args; |
| 782 | |
| 783 | va_start(args, fmt); |
| 784 | std::vsnprintf(buf, CON_MAX_STRINGLEN, fmt, args); |
| 785 | va_end(args); |
| 786 | |
| 787 | con_Printf(buf); |
| 788 | DedicatedSocketputs(buf); |
| 789 | } |
| 790 | |
| 791 | #if defined(POSIX) |
| 792 | #include <netinet/in.h> |
no test coverage detected