* 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,14 +78,10 @@ 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:
IN_MouseMove(event.motion.xrel, event.motion.yrel);