mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'advertisement-for-rpc' into 'master'
Move master server presence updates to Advertise_OnChange See merge request KartKrew/Kart-Public!227
This commit is contained in:
commit
4019005cfd
1 changed files with 4 additions and 8 deletions
12
src/mserv.c
12
src/mserv.c
|
|
@ -251,10 +251,6 @@ Finish_update (void)
|
||||||
|
|
||||||
if (! done)
|
if (! done)
|
||||||
Finish_update();
|
Finish_update();
|
||||||
#ifdef HAVE_DISCORDRPC
|
|
||||||
else
|
|
||||||
DRPC_UpdatePresence();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
@ -288,10 +284,6 @@ Finish_unlist (void)
|
||||||
I_wake_all_cond(&MSCond);
|
I_wake_all_cond(&MSCond);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_DISCORDRPC
|
|
||||||
DRPC_UpdatePresence();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_THREADS
|
#ifdef HAVE_THREADS
|
||||||
|
|
@ -564,4 +556,8 @@ Advertise_OnChange(void)
|
||||||
{
|
{
|
||||||
UnregisterServer();
|
UnregisterServer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_DISCORDRPC
|
||||||
|
DRPC_UpdatePresence();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue