From b1b0f5e654192966a326d7b62e39845bcee14763 Mon Sep 17 00:00:00 2001 From: Shpoike Date: Thu, 12 Dec 2024 13:22:02 +0000 Subject: [PATCH] Small compile fixes. --- engine/common/net_chan.c | 2 +- plugins/quake3/botlib/q_shared.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/common/net_chan.c b/engine/common/net_chan.c index 8a483ba2a..159e94f3d 100644 --- a/engine/common/net_chan.c +++ b/engine/common/net_chan.c @@ -736,7 +736,7 @@ A 0 length will still generate a packet and deal with the reliable messages. */ int Netchan_Transmit (netchan_t *chan, int length, qbyte *data, int rate) { - sizebuf_t send = {false}; + sizebuf_t send = {NULL}; qbyte send_buf[MAX_OVERALLMSGLEN + PACKET_HEADER]; qboolean send_reliable; char remote_adr[MAX_ADR_SIZE]; diff --git a/plugins/quake3/botlib/q_shared.h b/plugins/quake3/botlib/q_shared.h index 55b5a7c9e..0e04eab7d 100644 --- a/plugins/quake3/botlib/q_shared.h +++ b/plugins/quake3/botlib/q_shared.h @@ -473,7 +473,7 @@ int Q_isnan(float x); #if idppc -static ID_INLINE float Q_rsqrt( float number ) { +ID_INLINE float Q_rsqrt( float number ) { float x = 0.5f * number; float y; #ifdef __GNUC__ @@ -485,7 +485,7 @@ static ID_INLINE float Q_rsqrt( float number ) { } #ifdef __GNUC__ -static ID_INLINE float Q_fabs(float x) { +ID_INLINE float Q_fabs(float x) { float abs_x; asm("fabs %0,%1" : "=f" (abs_x) : "f" (x));