diff options
author | Aki <please@ignore.pl> | 2022-03-09 20:29:54 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-03-09 22:56:52 +0100 |
commit | e0dd50e4314a36fd99da0a7342b5ad88f449d33e (patch) | |
tree | 543766d28e3125c95067bdcab268055018fa6178 /Stars45/NetGameServer.cpp | |
parent | af4e8e1717405963ff89a114832d376f937786da (diff) | |
download | starshatter-e0dd50e4314a36fd99da0a7342b5ad88f449d33e.zip starshatter-e0dd50e4314a36fd99da0a7342b5ad88f449d33e.tar.gz starshatter-e0dd50e4314a36fd99da0a7342b5ad88f449d33e.tar.bz2 |
Changed to access Pause through Game rather than derived classes
Diffstat (limited to 'Stars45/NetGameServer.cpp')
-rw-r--r-- | Stars45/NetGameServer.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Stars45/NetGameServer.cpp b/Stars45/NetGameServer.cpp index fe53515..9170a46 100644 --- a/Stars45/NetGameServer.cpp +++ b/Stars45/NetGameServer.cpp @@ -19,7 +19,6 @@ #include "NetUser.h" #include "NetMsg.h" #include "NetData.h" -#include "StarServer.h" #include "Ship.h" #include "ShipDesign.h" #include "Shield.h" @@ -345,9 +344,9 @@ NetGameServer::DoJoinRequest(NetMsg* msg) } if (unpause) { - StarServer* s = StarServer::GetInstance(); - if (s) - s->Pause(false); + auto game = Game::GetInstance(); + if (game) + game->Pause(false); } } } |