mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
Fix text getting appended to vid_restart in command buffer
I was getting unknown command "vid_restart-button2" warning on OSX when trying to use alt-return to toggle fullscreen.
This commit is contained in:
parent
2eaee597c9
commit
81909bb266
2 changed files with 2 additions and 2 deletions
|
@ -808,7 +808,7 @@ void GLimp_EndFrame( void )
|
||||||
{
|
{
|
||||||
// SDL_WM_ToggleFullScreen didn't work, so do it the slow way
|
// SDL_WM_ToggleFullScreen didn't work, so do it the slow way
|
||||||
if( !sdlToggled )
|
if( !sdlToggled )
|
||||||
ri.Cmd_ExecuteText(EXEC_APPEND, "vid_restart");
|
ri.Cmd_ExecuteText(EXEC_APPEND, "vid_restart\n");
|
||||||
|
|
||||||
ri.IN_Restart( );
|
ri.IN_Restart( );
|
||||||
}
|
}
|
||||||
|
|
|
@ -999,7 +999,7 @@ void IN_Frame( void )
|
||||||
if ( (vidRestartTime != 0) && (vidRestartTime < Sys_Milliseconds()) )
|
if ( (vidRestartTime != 0) && (vidRestartTime < Sys_Milliseconds()) )
|
||||||
{
|
{
|
||||||
vidRestartTime = 0;
|
vidRestartTime = 0;
|
||||||
Cbuf_AddText( "vid_restart" );
|
Cbuf_AddText( "vid_restart\n" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue