mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
- Fixed settings_controller not updating properly when a player becomes the new arbitrator in a netgame.
This commit is contained in:
parent
53be21eb58
commit
7c8cdf80d1
1 changed files with 2 additions and 0 deletions
|
@ -1922,9 +1922,11 @@ void P_UnPredictPlayer ()
|
||||||
|
|
||||||
TObjPtr<AActor*> InvSel = act->InvSel;
|
TObjPtr<AActor*> InvSel = act->InvSel;
|
||||||
int inventorytics = player->inventorytics;
|
int inventorytics = player->inventorytics;
|
||||||
|
const bool settings_controller = player->settings_controller;
|
||||||
|
|
||||||
*player = PredictionPlayerBackup;
|
*player = PredictionPlayerBackup;
|
||||||
|
|
||||||
|
player->settings_controller = settings_controller;
|
||||||
// Restore the camera instead of using the backup's copy, because spynext/prev
|
// Restore the camera instead of using the backup's copy, because spynext/prev
|
||||||
// could cause it to change during prediction.
|
// could cause it to change during prediction.
|
||||||
player->camera = savedcamera;
|
player->camera = savedcamera;
|
||||||
|
|
Loading…
Reference in a new issue