summaryrefslogtreecommitdiff
path: root/src/network/core/game_info.h
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-07-14 21:23:44 +0200
committerGitHub <noreply@github.com>2021-07-14 21:23:44 +0200
commitc921f6d81794223590abc4ced95daba0b91e4767 (patch)
tree7d929eafb0c225ba74baca4633838a79be5b3c33 /src/network/core/game_info.h
parent333cba6a619d8d99a2508e5cb9cd1cc72c4360d1 (diff)
downloadopenttd-c921f6d81794223590abc4ced95daba0b91e4767.tar.xz
Add: inform clients what game-script a server is running (#9441)
Co-authored-by: The Dude <thedude@novapolis.net>
Diffstat (limited to 'src/network/core/game_info.h')
-rw-r--r--src/network/core/game_info.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/core/game_info.h b/src/network/core/game_info.h
index 1ea77ae77..8d9824b18 100644
--- a/src/network/core/game_info.h
+++ b/src/network/core/game_info.h
@@ -76,6 +76,8 @@ struct NetworkServerGameInfo {
byte spectators_on; ///< How many spectators do we have?
byte spectators_max; ///< Max spectators allowed on server
byte landscape; ///< The used landscape
+ int gamescript_version; ///< Version of the gamescript.
+ std::string gamescript_name; ///< Name of the gamescript.
};
/**