mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Draw spectator view depending on the protocol version
This commit is contained in:
parent
00b926db29
commit
cb95284d0c
1 changed files with 9 additions and 7 deletions
|
@ -1041,9 +1041,7 @@ void CG_DrawInstantMessageMenu()
|
|||
cgi.R_DrawStretchPic(x, y, w, h, 0.0, 0.0, 1.0, 1.0, handle);
|
||||
}
|
||||
|
||||
#if TARGET_GAME_PROTOCOL >= 15
|
||||
|
||||
void CG_DrawSpectatorView()
|
||||
void CG_DrawSpectatorView_ver_15()
|
||||
{
|
||||
const char* pszString;
|
||||
int iKey1, iKey2;
|
||||
|
@ -1151,9 +1149,7 @@ void CG_DrawSpectatorView()
|
|||
}
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
void CG_DrawSpectatorView()
|
||||
void CG_DrawSpectatorView_ver_6()
|
||||
{
|
||||
const char* pszString;
|
||||
int iKey1, iKey2;
|
||||
|
@ -1213,7 +1209,13 @@ void CG_DrawSpectatorView()
|
|||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
void CG_DrawSpectatorView() {
|
||||
if (cgi.protocol >= PROTOCOL_MOHTA_MIN) {
|
||||
CG_DrawSpectatorView_ver_15();
|
||||
} else {
|
||||
CG_DrawSpectatorView_ver_6();
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
==============
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue