mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Write server frametime depending on the protocol used
This commit is contained in:
parent
b67b3863ba
commit
b9c5a4d5ba
1 changed files with 10 additions and 7 deletions
|
@ -579,18 +579,21 @@ void SV_DropClient( client_t *drop, const char *reason ) {
|
|||
}
|
||||
}
|
||||
|
||||
#if TARGET_GAME_PROTOCOL >= 15
|
||||
|
||||
void MSG_WriteServerFrameTime(msg_t* msg, float f) {
|
||||
void MSG_WriteServerFrameTime_ver_15(msg_t* msg, float f) {
|
||||
MSG_WriteFloat(msg, f);
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
void MSG_WriteServerFrameTime(msg_t* msg, float f) {
|
||||
void MSG_WriteServerFrameTime_ver_6(msg_t* msg, float f) {
|
||||
// Nothing to write
|
||||
}
|
||||
|
||||
#endif
|
||||
void MSG_WriteServerFrameTime(msg_t* msg, float f) {
|
||||
if (MSG_IsProtocolVersion15()) {
|
||||
MSG_WriteServerFrameTime_ver_15(msg, f);
|
||||
} else {
|
||||
MSG_WriteServerFrameTime_ver_6(msg, f);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue