This is a fork of Zandronum for TSPG.
Revisão | 97354c080c6a768729a93842289d59ed34769f2d (tree) |
---|---|
Hora | 2017-03-06 03:39:59 |
Autor | Benjamin Berkels <torr.samaho@quan...> |
Commiter | Benjamin Berkels |
The server doesn't enforce the SR50 turn lock anymore if sv_cheats is true. This way turbo 103+ works properly on the clients (addresses 2672).
@@ -5260,7 +5260,7 @@ | ||
5260 | 5260 | if (SERVER_GetClient(ulClient)->State == CLS_SPAWNED) { |
5261 | 5261 | pPlayer->mo->pitch = moveCmd.pitch; |
5262 | 5262 | // [HYP] Lock angle if speed is above sr40 |
5263 | - if (pCmd->ucmd.sidemove > ( sidemove[1] << 8 ) || pCmd->ucmd.sidemove < -(sidemove[1] << 8)) | |
5263 | + if ( !sv_cheats && ( pCmd->ucmd.sidemove > ( sidemove[1] << 8 ) || pCmd->ucmd.sidemove < -(sidemove[1] << 8) ) ) | |
5264 | 5264 | { |
5265 | 5265 | pCmd->ucmd.yaw = 0; |
5266 | 5266 | } |