DEADSOFTWARE

don't flush enet every message
[d2df-sdl.git] / src / game / g_net.pas
index 944ce6f6727eb3746ff56c901238e6ccecbaa035..b71d541231d055004b2c919a1d04aae3cdee3e41 100644 (file)
@@ -13,7 +13,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *)
-{$MODE DELPHI}
+{$INCLUDE ../shared/a_modes.inc}
 unit g_net;
 
 interface
@@ -447,7 +447,7 @@ begin
   end;
 
   if NetDump then g_Net_DumpSendBuffer();
-  g_Net_Flush();
+  // g_Net_Flush();
   e_Buffer_Clear(@NetOut);
 end;
 
@@ -668,7 +668,7 @@ begin
 
   enet_peer_send(NetPeer, Chan, P);
   if NetDump then g_Net_DumpSendBuffer();
-  g_Net_Flush();
+  // g_Net_Flush();
   e_Buffer_Clear(@NetOut);
 end;
 
@@ -714,7 +714,7 @@ begin
       end;
     end;
   end;
-  g_Net_Flush();
+  // g_Net_Flush();
 end;
 
 function g_Net_Connect(IP: string; Port: enet_uint16): Boolean;