diff options
Diffstat (limited to 'StarsEx/NetUtil.cpp')
-rw-r--r-- | StarsEx/NetUtil.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/StarsEx/NetUtil.cpp b/StarsEx/NetUtil.cpp index ff212c5..50e76a4 100644 --- a/StarsEx/NetUtil.cpp +++ b/StarsEx/NetUtil.cpp @@ -11,14 +11,15 @@ Utility class to simplify sending NetData messages. */ - #include "NetUtil.h" -#include "NetData.h" -#include "NetGame.h" -#include "NetGameServer.h" + +#include <cstdint> #include "Element.h" #include "Instruction.h" +#include "NetData.h" +#include "NetGame.h" +#include "NetGameServer.h" #include "Random.h" #include "Ship.h" #include "Shot.h" @@ -230,7 +231,7 @@ NetUtil::SendWepRelease(Weapon* wep, Shot* shot) if (!net_game || !wep || !shot) return; if (net_game->IsServer() && wep->IsMissile()) { - DWORD wepid = NetGame::GetNextObjID(NetGame::SHOT); + auto wepid = NetGame::GetNextObjID(NetGame::SHOT); shot->SetObjID(wepid); NetWepRelease release; @@ -275,7 +276,7 @@ NetUtil::SendWepDestroy(Shot* shot) // +-------------------------------------------------------------------+ void -NetUtil::SendChat(DWORD dst, const char* name, const char* text) +NetUtil::SendChat(std::uint32_t dst, const char* name, const char* text) { NetGame* net_game = NetGame::GetInstance(); if (!net_game || !name || !*name || !text || !*text) return; |