From 6b2a17a2ccb1a0d45489208f7f23b9d6a65b110d Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 23 Mar 2022 22:57:42 +0100 Subject: Removed Clock from Game for now While testing waters around exporting things out from Game to GameWinDX9 I noticed that if both ContentBundle and Clock (primarily) are removed from it, then the WinDX9 will be almost equivalent to base. This is worrying mainly because I'm only fortified in seeing deep relationships between various classes sadly including Video. --- Stars45/NetGameClient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Stars45/NetGameClient.cpp') diff --git a/Stars45/NetGameClient.cpp b/Stars45/NetGameClient.cpp index 89e1ff0..c333547 100644 --- a/Stars45/NetGameClient.cpp +++ b/Stars45/NetGameClient.cpp @@ -39,7 +39,7 @@ #include "NetLayer.h" #include "NetPeer.h" -#include "Game.h" +#include "Clock.h" #include "ContentBundle.h" #include "Light.h" @@ -936,7 +936,7 @@ NetGameClient::DoSelfDestruct(NetMsg* msg) void NetGameClient::Send() { - DWORD time = Game::GetInstance()->GetClock()->GameTime(); + DWORD time = Clock::GetInstance()->GameTime(); // don't flood the network... if (time - last_send_time < MIN_NET_FRAME) -- cgit v1.1