1
0
Fork 0
forked from fte/fteqw

Small compile fixes.

This commit is contained in:
Shpoike 2024-12-12 13:22:02 +00:00
parent c9de6f4bff
commit b1b0f5e654
2 changed files with 3 additions and 3 deletions

View file

@ -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) 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]; qbyte send_buf[MAX_OVERALLMSGLEN + PACKET_HEADER];
qboolean send_reliable; qboolean send_reliable;
char remote_adr[MAX_ADR_SIZE]; char remote_adr[MAX_ADR_SIZE];

View file

@ -473,7 +473,7 @@ int Q_isnan(float x);
#if idppc #if idppc
static ID_INLINE float Q_rsqrt( float number ) { ID_INLINE float Q_rsqrt( float number ) {
float x = 0.5f * number; float x = 0.5f * number;
float y; float y;
#ifdef __GNUC__ #ifdef __GNUC__
@ -485,7 +485,7 @@ static ID_INLINE float Q_rsqrt( float number ) {
} }
#ifdef __GNUC__ #ifdef __GNUC__
static ID_INLINE float Q_fabs(float x) { ID_INLINE float Q_fabs(float x) {
float abs_x; float abs_x;
asm("fabs %0,%1" : "=f" (abs_x) : "f" (x)); asm("fabs %0,%1" : "=f" (abs_x) : "f" (x));