Skip to content

Commit

Permalink
Merged pull request "Sync with Q2PRO: Misc": NVIDIA#359
Browse files Browse the repository at this point in the history
  • Loading branch information
apanteleev committed Nov 21, 2023
2 parents 426c36b + 76bfef7 commit f29281a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/client/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,7 @@ static void CL_Reconnect_f(void)
SCR_UpdateScreen();
}

#ifdef USE_UI
#if USE_UI
/*
=================
CL_SendStatusRequest
Expand Down
2 changes: 1 addition & 1 deletion src/server/commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ void SV_PrintMiscInfo(void)
sv_client->min_ping, AVG_PING(sv_client), sv_client->max_ping);
Com_Printf("PL server to client %.2f%% (approx)\n", PL_S2C(sv_client));
Com_Printf("PL client to server %.2f%%\n", PL_C2S(sv_client));
#ifdef USE_PACKETDUP
#if USE_PACKETDUP
Com_Printf("packetdup %d\n", sv_client->numpackets - 1);
#endif
Com_Printf("timescale %.3f\n", sv_client->timescale);
Expand Down
3 changes: 1 addition & 2 deletions src/server/mvd/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,7 @@ static void MVD_UnicastPrint(mvd_t *mvd, bool reliable, mvd_player_t *player)
continue;
}
// decide if message should be routed or not
target = (mvd->flags & MVF_NOMSGS) ? mvd->dummy :
client->target ? client->target : mvd->dummy;
target = (client->target && !(mvd->flags & MVF_NOMSGS)) ? client->target : mvd->dummy;
if (target == player) {
cl->AddMessage(cl, data, length, reliable);
}
Expand Down
4 changes: 3 additions & 1 deletion src/unix/hunk.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,10 @@ void Hunk_End(memhunk_t *hunk)
newsize = ALIGN(hunk->cursize, pagesize);

if (newsize < hunk->maxsize) {
#ifdef __linux__
#if defined(__linux__)
void *buf = mremap(hunk->base, hunk->maxsize, newsize, 0);
#elif defined(__NetBSD__)
void *buf = mremap(hunk->base, hunk->maxsize, NULL, newsize, 0);
#else
void *unmap_base = (byte *)hunk->base + newsize;
size_t unmap_len = hunk->maxsize - newsize;
Expand Down
4 changes: 2 additions & 2 deletions src/unix/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ static void kill_handler(int signum)
{
tty_shutdown_input();

#if USE_CLIENT && USE_REF
#if USE_REF
if (vid.fatal_shutdown)
vid.fatal_shutdown();
#endif
Expand Down Expand Up @@ -321,7 +321,7 @@ void Sys_Error(const char *error, ...)
get_sdl_window());
#endif

#if USE_CLIENT && USE_REF
#if USE_REF
if (vid.fatal_shutdown)
vid.fatal_shutdown();
#endif
Expand Down

0 comments on commit f29281a

Please sign in to comment.