aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2019-09-10 21:18:42 +0200
committerSmallJoker <mk939@ymail.com>2019-09-14 19:43:08 +0200
commit9acd36bf9981cf9cb8e82785508d6eb7f010cc77 (patch)
tree6f0fae04efa009e8fd0a13dd0ab613c8010ae764 /src/client
parentb0baa698a495cc990ce5d9c22763957f1138aed3 (diff)
downloadminetest-9acd36bf9981cf9cb8e82785508d6eb7f010cc77.tar.gz
minetest-9acd36bf9981cf9cb8e82785508d6eb7f010cc77.tar.bz2
minetest-9acd36bf9981cf9cb8e82785508d6eb7f010cc77.zip
Formspecs: Introduce formspec_version to mods
Diffstat (limited to 'src/client')
-rw-r--r--src/client/client.cpp3
-rw-r--r--src/client/game.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/client/client.cpp b/src/client/client.cpp
index 9535acc8e..f6be3186f 100644
--- a/src/client/client.cpp
+++ b/src/client/client.cpp
@@ -1222,12 +1222,13 @@ void Client::sendRespawn()
void Client::sendReady()
{
NetworkPacket pkt(TOSERVER_CLIENT_READY,
- 1 + 1 + 1 + 1 + 2 + sizeof(char) * strlen(g_version_hash));
+ 1 + 1 + 1 + 1 + 2 + sizeof(char) * strlen(g_version_hash) + 2);
pkt << (u8) VERSION_MAJOR << (u8) VERSION_MINOR << (u8) VERSION_PATCH
<< (u8) 0 << (u16) strlen(g_version_hash);
pkt.putRawString(g_version_hash, (u16) strlen(g_version_hash));
+ pkt << (u16)FORMSPEC_API_VERSION;
Send(&pkt);
}
diff --git a/src/client/game.cpp b/src/client/game.cpp
index b5508f2cb..bc35ade85 100644
--- a/src/client/game.cpp
+++ b/src/client/game.cpp
@@ -4055,7 +4055,7 @@ void Game::showPauseMenu()
float ypos = simple_singleplayer_mode ? 0.7f : 0.1f;
std::ostringstream os;
- os << FORMSPEC_VERSION_STRING << SIZE_TAG
+ os << FORMSPEC_VERSION_STRING << SIZE_TAG
<< "button_exit[4," << (ypos++) << ";3,0.5;btn_continue;"
<< strgettext("Continue") << "]";