Skip to content

Commit

Permalink
Adds map name to game mode logging at round start. (#6551)
Browse files Browse the repository at this point in the history
# About the pull request

Adds the name of the map to the round start log with the game mode.

# Explain why it's good for the game

This will make tracking map related data easier via logs and data
collection. Evidently we did not do this in a very obvious place before,
and the only way to know that a map was on while looking at logs
exclusively was through context clues.

# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>


# Changelog
:cl:
code: log the map name at round start
/:cl:
  • Loading branch information
blackdragonTOW committed Jul 7, 2024
1 parent 05f7103 commit e2d5895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/game/gamemodes/game_mode.dm
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ GLOBAL_VAR_INIT(cas_tracking_id_increment, 0) //this var used to assign unique t
log_game("Round started at [time2text(world.realtime)]")
log_game("Operation time at round start is [worldtime2text()]")
if(SSticker.mode)
log_game("Game mode set to [SSticker.mode]")
log_game("Game mode set to [SSticker.mode] on the [SSmapping.configs[GROUND_MAP].map_name] map")
log_game("Server IP: [world.internet_address]:[world.port]")
return TRUE

Expand Down

0 comments on commit e2d5895

Please sign in to comment.