shithub: duke3d

Download patch

ref: c773cb5878d3350f955c3d85fcddee7d86829c3f
parent: 7b806e340de7d206c16502aeca8a7c4e3aa680a2
author: Tanguy Fautre <tanguy@fautre.com>
date: Thu Feb 27 17:07:15 EST 2020

Fix build.

--- a/Engine/src/mmulti.c
+++ b/Engine/src/mmulti.c
@@ -119,9 +119,9 @@
 static gcomtype *init_network_transport(char **ARGV, int argpos);
 static void deinit_network_transport(gcomtype *gcom);
 static void dosendpackets(long other);
+static void callcommit(void);
 
-
-void initcrc(void)
+static void initcrc(void)
 {
 	long i, j, k, a;
 
@@ -141,7 +141,7 @@
 }
 
 
-int32_t getcrc(uint8_t *buffer, short bufleng)
+static int32_t getcrc(uint8_t *buffer, short bufleng)
 {
     int32_t i, j;
 
@@ -356,11 +356,6 @@
 {
 	return(0);
 }
-
-void setsocket(short newsocket)
-{
-}
-
 
 short getpacket (short *other, uint8_t *bufptr)
 {
--- a/Engine/src/mmulti.h
+++ b/Engine/src/mmulti.h
@@ -3,9 +3,6 @@
 
 #include <stdint.h>
 
-void callcommit(void);
-void initcrc(void);
-int32_t getcrc(uint8_t* buffer, short bufleng);
 void initmultiplayers();
 void sendpacket(int32_t other, const uint8_t* bufptr, int32_t messleng);
 void setpackettimeout(int32_t datimeoutcount, int32_t daresendagaincount);
@@ -13,7 +10,6 @@
 void sendlogon(void);
 void sendlogoff(void);
 int32_t  getoutputcirclesize(void);
-void setsocket(short newsocket);
 short getpacket(short* other, uint8_t* bufptr);
 void flushpackets(void);
 void genericmultifunction(int32_t other, const uint8_t* bufptr, int32_t messleng, int32_t command);
--- a/Game/src/game.c
+++ b/Game/src/game.c
@@ -7739,7 +7739,7 @@
    tiles[MIRROR].dim.width = tiles[MIRROR].dim.height = 0;
 
    for(i=0;i<MAXPLAYERS;i++) playerreadyflag[i] = 0;
-   initmultiplayers(0,0,0);
+   initmultiplayers();
 
    if(numplayers > 1)
     puts("Multiplayer initialized.");