- Improve game_restart:

* differing screen resolutions and network settings are now honoured when changing fs_game
  * Fix hunk memory leak on game_restart
  * Move cls.state and cls.servername to clc so connection state is fully preserved over game_restart
  * Revert back to previous fs_game after disconnecting from a server that triggered a game_restart
  * Fix error dialog popping up after every game_restart if an error happened previously (reported by Ensiform)
- Fixed that not all commands added by CL_Init() would be removed by CL_Shutdown()
This commit is contained in:
Thilo Schulz 2011-06-21 11:18:35 +00:00
parent adc143e050
commit dee3724a13
17 changed files with 354 additions and 191 deletions

View file

@ -25,7 +25,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
cvar_t *cl_shownet;
void CL_Shutdown( char *finalmsg ) {
void CL_Shutdown(char *finalmsg, qboolean disconnect)
{
}
void CL_Init( void ) {
@ -79,16 +80,23 @@ void CL_InitKeyCommands( void ) {
void CL_CDDialog( void ) {
}
void CL_FlushMemory( void ) {
void CL_FlushMemory(void)
{
}
void CL_ShutdownAll(qboolean shutdownRef)
{
}
void CL_StartHunkUsers( qboolean rendererOnly ) {
}
void CL_InitRef(void)
{
}
void CL_Snd_Shutdown(void)
{
}
void CL_ShutdownAll(void) {}
qboolean CL_CDKeyValidate( const char *key, const char *checksum ) { return qtrue; }