Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

#3537 closed defect (fixed)

[PATCH] Persist Match Settings - Have a rated game with cheats enabled

Reported by: elexis Owned by: JoshuaJB
Priority: Must Have Milestone: Alpha 19
Component: UI & Simulation Keywords:
Cc: Patch:

Description

Being able to load the previous gamesetup (presist-match-settings) has the bug of allowing a rated game with cheats enabled.

Reproduce:

  1. Delete matchsettings.mp.json in the config directory (see wiki:GameDataPaths)
  2. Open a non-lobby multiplayer game with cheats enabled (you don't need to start the game, clicking on back is sufficient)
  3. Start a lobbied multiplayer game.

Ratings will be checked by default, but cheats are still active. Select a tree and type "wololo" into the chat to confirm this.

Attachments (1)

t3537_prohibit_rated_games_with_cheats_v1.patch (1.2 KB ) - added by elexis 8 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 by elexis, 8 years ago

Milestone: BacklogAlpha 19
Priority: Should HaveMust Have

comment:2 by elexis, 8 years ago

Keywords: patch added; simple removed
Summary: Persist Match Settings - Have a rated game with cheats enabled[PATCH] Persist Match Settings - Have a rated game with cheats enabled

A malicious server might still mess with those settings. It would be better if the clients would also do a separate check and not accept invalid settings.

comment:3 by Josh, 8 years ago

Keywords: reviewed added

Patch looks good. No additional code and cleaner logic.

Also, note that this ticket was not tagged for review.

comment:4 by JoshuaJB, 8 years ago

Owner: set to JoshuaJB
Resolution: fixed
Status: newclosed

In 17160:

Fix #3537 with better rating state enforcement. Patch by elexis.

comment:5 by Josh, 8 years ago

Keywords: patch reviewed removed

Thanks for the patch.

Note: See TracTickets for help on using tickets.