* 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:
sezero 2010-06-19 14:10:19 +00:00
parent 6667ab7afb
commit 6b05365aa3

View file

@ -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