Make sure we don't write kartspeed beyond SV_SPEEDMASK

This commit is contained in:
fickleheart 2019-03-10 17:43:39 -05:00
parent 048ce8496f
commit 0e58653727

View file

@ -1364,7 +1364,7 @@ static void SV_SendServerInfo(INT32 node, tic_t servertime)
netbuffer->u.serverinfo.cheatsenabled = CV_CheatsEnabled();
netbuffer->u.serverinfo.kartvars = (UINT8) (
cv_kartspeed.value |
(cv_kartspeed.value & SV_SPEEDMASK) |
(dedicated ? SV_DEDICATED : 0) |
(D_IsJoinPasswordOn() ? SV_PASSWORD : 0)
);