diff options
author | Aki <please@ignore.pl> | 2022-03-27 17:42:26 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-03-27 17:42:26 +0200 |
commit | a12e588079700d55a0b788fea2df7727c2e41f52 (patch) | |
tree | 690072569624c73af5043b3619acaab4d298b1fa /Stars45/NetGameClient.cpp | |
parent | 72bb517271dad40a440533ad0796a88247011199 (diff) | |
download | starshatter-a12e588079700d55a0b788fea2df7727c2e41f52.zip starshatter-a12e588079700d55a0b788fea2df7727c2e41f52.tar.gz starshatter-a12e588079700d55a0b788fea2df7727c2e41f52.tar.bz2 |
Removed MemDebug from FoundationEx
Diffstat (limited to 'Stars45/NetGameClient.cpp')
-rw-r--r-- | Stars45/NetGameClient.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Stars45/NetGameClient.cpp b/Stars45/NetGameClient.cpp index c333547..5b1440f 100644 --- a/Stars45/NetGameClient.cpp +++ b/Stars45/NetGameClient.cpp @@ -11,7 +11,6 @@ Network Game Manager class */ -#include "MemDebug.h" #include "NetGameClient.h" #include "NetClientConfig.h" #include "NetLobby.h" @@ -73,7 +72,7 @@ NetGameClient::NetGameClient() if (server_name.length() && port > 0) { Print(" '%s' is a client of '%s'\n", me.Name(), server_name.data()); - link = new(__FILE__,__LINE__) NetLink; + link = new NetLink; server_id = link->AddPeer(NetAddr(server_name, port)); SendJoinRequest(); } @@ -143,7 +142,7 @@ NetGameClient::DoJoinAnnounce(NetMsg* msg) Sim* sim = Sim::GetSim(); if (!sim) return; - NetJoinAnnounce* join_ann = new(__FILE__,__LINE__) NetJoinAnnounce; + NetJoinAnnounce* join_ann = new NetJoinAnnounce; bool saved = false; if (join_ann->Unpack(msg->Data())) { @@ -229,7 +228,7 @@ NetGameClient::DoJoinAnnounce(NetMsg* msg) if (shield) shield->SetNetShieldLevel(shld_lvl); - NetPlayer* remote_player = new(__FILE__,__LINE__) NetPlayer(nid); + NetPlayer* remote_player = new NetPlayer(nid); remote_player->SetName(name); remote_player->SetObjID(oid); remote_player->SetShip(ship); @@ -311,7 +310,7 @@ NetGameClient::DoJoinBacklog(NetJoinAnnounce* join_ann) if (shield) shield->SetNetShieldLevel(shld_lvl); - NetPlayer* remote_player = new(__FILE__,__LINE__) NetPlayer(nid); + NetPlayer* remote_player = new NetPlayer(nid); remote_player->SetName(name); remote_player->SetObjID(oid); remote_player->SetShip(ship); @@ -667,7 +666,7 @@ NetGameClient::DoElemCreate(NetMsg* msg) elem->SetLoadout(load); if (code > Instruction::RTB || target.length() > 0) { - Instruction* obj = new(__FILE__,__LINE__) Instruction(code, target); + Instruction* obj = new Instruction(code, target); elem->AddObjective(obj); } @@ -823,7 +822,7 @@ NetGameClient::DoNavData(NetMsg* msg) if (elem) { if (nav_data.IsAdd()) { - Instruction* navpt = new(__FILE__,__LINE__) Instruction(*nav_data.GetNavPoint()); + Instruction* navpt = new Instruction(*nav_data.GetNavPoint()); Instruction* after = 0; int index = nav_data.GetIndex(); |