mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:57:35 +00:00
Ports: Add quake3 port :^)
This commit is contained in:
parent
c08dfe063a
commit
e2f1da8cec
11 changed files with 571 additions and 0 deletions
|
@ -0,0 +1,52 @@
|
|||
From 1d85a563613d3ea2f6cb03c01a4f4bbda2051e79 Mon Sep 17 00:00:00 2001
|
||||
From: Jesse Buhagiar <jooster669@gmail.com>
|
||||
Date: Fri, 25 Mar 2022 09:45:32 +1100
|
||||
Subject: [PATCH 5/8] Engine: Move `#ifdef` to more sensible location
|
||||
|
||||
No linker errors in this dojo!
|
||||
---
|
||||
code/qcommon/net_ip.c | 7 ++++---
|
||||
1 file changed, 4 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/code/qcommon/net_ip.c b/code/qcommon/net_ip.c
|
||||
index ea940f59..aaba8321 100644
|
||||
--- a/code/qcommon/net_ip.c
|
||||
+++ b/code/qcommon/net_ip.c
|
||||
@@ -1000,9 +1000,9 @@ NET_JoinMulticast
|
||||
Join an ipv6 multicast group
|
||||
====================
|
||||
*/
|
||||
-#ifndef __serenity__
|
||||
void NET_JoinMulticast6(void)
|
||||
{
|
||||
+#ifndef __serenity__
|
||||
int err;
|
||||
|
||||
if(ip6_socket == INVALID_SOCKET || multicast6_socket != INVALID_SOCKET || (net_enabled->integer & NET_DISABLEMCAST))
|
||||
@@ -1049,10 +1049,12 @@ void NET_JoinMulticast6(void)
|
||||
return;
|
||||
}
|
||||
}
|
||||
+#endif
|
||||
}
|
||||
|
||||
void NET_LeaveMulticast6()
|
||||
{
|
||||
+#ifndef __serenity__
|
||||
if(multicast6_socket != INVALID_SOCKET)
|
||||
{
|
||||
if(multicast6_socket != ip6_socket)
|
||||
@@ -1062,9 +1064,8 @@ void NET_LeaveMulticast6()
|
||||
|
||||
multicast6_socket = INVALID_SOCKET;
|
||||
}
|
||||
-}
|
||||
-
|
||||
#endif
|
||||
+}
|
||||
|
||||
/*
|
||||
====================
|
||||
--
|
||||
2.35.1
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue