mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-14 16:01:44 +00:00
* main_sdl.c: Skip the SDL_Event stuff in dedicated servers.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@184 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
6667ab7afb
commit
6b05365aa3
1 changed files with 2 additions and 6 deletions
|
@ -70,7 +70,7 @@ int main(int argc, char *argv[])
|
|||
{
|
||||
// TODO: dedicated server loop
|
||||
|
||||
while (!done && SDL_PollEvent (&event))
|
||||
while (!isDedicated && !done && SDL_PollEvent (&event))
|
||||
{
|
||||
switch (event.type)
|
||||
{
|
||||
|
@ -78,13 +78,9 @@ int main(int argc, char *argv[])
|
|||
if (event.active.state & (SDL_APPACTIVE|SDL_APPINPUTFOCUS))
|
||||
{
|
||||
if (event.active.gain)
|
||||
{
|
||||
S_UnblockSound();
|
||||
}
|
||||
else
|
||||
{
|
||||
S_BlockSound();
|
||||
}
|
||||
}
|
||||
break;
|
||||
case SDL_MOUSEMOTION:
|
||||
|
@ -110,7 +106,7 @@ int main(int argc, char *argv[])
|
|||
Key_Event(K_MWHEELDOWN, event.button.type == SDL_MOUSEBUTTONDOWN);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
break;
|
||||
case SDL_KEYDOWN:
|
||||
case SDL_KEYUP:
|
||||
// SHIFT + ESC and circomflex always opens the console no matter what
|
||||
|
|
Loading…
Reference in a new issue