Skip to content

Commit

Permalink
Add comment to deprecate map_file_path in game_info messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Askaholic committed Jan 1, 2024
1 parent 740f258 commit 2442c5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/games/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,7 @@ def to_dict(self):
"featured_mod": self.game_mode,
"sim_mods": self.mods,
"mapname": self.map.folder_name,
# DEPRECATED: Use `mapname` instead
"map_file_path": self.map.file_path,
"host": self.host.login if self.host else "",
"num_players": len(connected_players),
Expand Down

0 comments on commit 2442c5f

Please sign in to comment.