Skip to content

Commit 8829f9f

Browse files
authored
Merge pull request #763 from openmultiplayer/amir/new_changes
Some small changes before new release
2 parents 3eb568c + ac5b521 commit 8829f9f

3 files changed

Lines changed: 10 additions & 7 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.19)
2-
project(open-mp LANGUAGES C CXX VERSION 1.0.1)
2+
project(open-mp LANGUAGES C CXX VERSION 1.1.0)
33

44
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
55

Server/Components/LegacyNetwork/legacy_network_impl.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "legacy_network_impl.hpp"
1010
#include "Query/query.hpp"
1111
#include "raknet/../../SAMPRakNet.hpp"
12+
#include <sstream>
1213
#include <netcode.hpp>
1314
#include <raknet/PacketEnumerations.h>
1415
#include <raknet/RakPeer.h>
@@ -790,13 +791,14 @@ void RakNetLegacyNetwork::start()
790791
bool allow037 = *config.getBool("network.allow_037_clients");
791792

792793
query.setCore(core);
793-
query.setRuleValue<false>("version", !allow037 ? "0.3.DL-R1" : "0.3.7-R2");
794-
query.setRuleValue<false>("artwork", artwork ? "Yes" : "No");
795794

796-
if (allow037)
797-
{
798-
query.setRuleValue<false>("allow_DL", "Yes");
799-
}
795+
std::stringstream version;
796+
version << "omp " << OMP_VERSION_MAJOR << "." << OMP_VERSION_MINOR << "." << OMP_VERSION_PATCH << "." << BUILD_NUMBER;
797+
query.setRuleValue<false>("version", version.str());
798+
// Send as a rule to announce which clients are allowed to join
799+
query.setRuleValue<false>("allowed_clients", !allow037 ? "0.3.DL" : "0.3.7, 0.3.DL");
800+
801+
query.setRuleValue<false>("artwork", artwork ? "Yes" : "No");
800802

801803
query.setMaxPlayers(maxPlayers);
802804
query.buildPlayerDependentBuffers();

Server/Components/Pickups/pickup.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ class Pickup final : public IPickup, public PoolIDProvider, public NoCopy
156156
void setVirtualWorld(int vw) override
157157
{
158158
virtualWorld = vw;
159+
restream();
159160
}
160161

161162
int getID() const override

0 commit comments

Comments
 (0)