mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-15 16:41:22 +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,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);
|
||||
|
|
Loading…
Reference in a new issue