Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.58 KB | None | 0 0
  1. Index: src/fpsgame/server.cpp
  2. ===================================================================
  3. --- src/fpsgame/server.cpp      (revision 2008)
  4. +++ src/fpsgame/server.cpp      (working copy)
  5. @@ -1950,7 +1950,7 @@
  6.          if(!gamepaused) gamemillis += curtime;
  7.          
  8.          if(m_demo) readdemo();
  9. -        else if(!gamepaused && gamemillis < gamelimit)
  10. +        else if(!gamepaused && (!m_timed || gamemillis < gamelimit))
  11.          {
  12.              processevents();
  13.              if(curtime)
  14. @@ -1977,7 +1977,7 @@
  15.  
  16.          loopv(connects) if(totalmillis-connects[i]->connectmillis>15000) disconnect_client(connects[i]->clientnum, DISC_TIMEOUT);
  17.          
  18. -        if(nextexceeded && gamemillis > nextexceeded)
  19. +        if(nextexceeded && gamemillis > nextexceeded && (!m_timed || gamemillis < gamelimit))
  20.          {
  21.              nextexceeded = 0;
  22.              loopvrev(clients)
  23. @@ -2372,10 +2372,10 @@
  24.                  }
  25.                  if(cp)
  26.                  {
  27. -                    if(!ci->local && !m_edit && max(vel.magnitude2(), (float)fabs(vel.z)) >= 180)
  28. -                        cp->setexceeded();
  29.                      if((!ci->local || demorecord || hasnonlocalclients()) && (cp->state.state==CS_ALIVE || cp->state.state==CS_EDITING))
  30.                      {
  31. +                        if(!ci->local && !m_edit && max(vel.magnitude2(), (float)fabs(vel.z)) >= 180)
  32. +                            cp->setexceeded();
  33.                          cp->position.setsize(0);
  34.                          while(curmsg<p.length()) cp->position.add(p.buf[curmsg++]);
  35.                      }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement