diff options
author | /dev/humancontroller <devhc@example.com> | 2017-04-06 20:39:29 +0200 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-04-06 20:59:01 +0200 |
commit | e984293788358a72dcb57ad5d74402a3f10f0d97 (patch) | |
tree | 125ca886f39bf13f5f8f47f593788d20af684ead /src/server/sv_main.c | |
parent | e8d1308d559e623843737e0fc6793435437a0629 (diff) |
implement Schachtmeister v2 basics
Diffstat (limited to 'src/server/sv_main.c')
-rw-r--r-- | src/server/sv_main.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/server/sv_main.c b/src/server/sv_main.c index e5e7e5f1..41c51508 100644 --- a/src/server/sv_main.c +++ b/src/server/sv_main.c @@ -752,6 +752,16 @@ static void SVC_RemoteCommand( netadr_t from, msg_t *msg ) { Com_EndRedirect (); } +static void SVC_SchachtmeisterResponse( netadr_t from ) { + if ( !( from.type == NA_IP && from.ip[0] == 127 ) ) { + return; + } + + strcpy( Cmd_Argv( 0 ), "smr" ); + + SV_GameCommand(); +} + /* ================= SV_ConnectionlessPacket @@ -793,6 +803,8 @@ static void SV_ConnectionlessPacket( netadr_t from, msg_t *msg ) { // if a client starts up a local server, we may see some spurious // server disconnect messages when their new server sees our final // sequenced messages to the old client + } else if (!Q_stricmp(c, "sm2reply")) { + SVC_SchachtmeisterResponse( from ); } else { Com_DPrintf ("bad connectionless packet from %s:\n%s\n", NET_AdrToString (from), s); |