aboutsummaryrefslogtreecommitdiff
path: root/src/packet_distribution.cpp
diff options
context:
space:
mode:
authorCrystalwarrior <varsash@gmail.com>2020-02-24 22:20:43 +0300
committerCrystalwarrior <varsash@gmail.com>2020-02-24 22:20:43 +0300
commita4e448576b43b9cf4f984253abb3daf7296aa154 (patch)
tree7331922ec7176feb0bbbb2bc3ac5b06267279062 /src/packet_distribution.cpp
parent9df7b9648ae1bd694f99fa6748eee547752b6c9c (diff)
Make pos dropdown more abstract and actually useful by letting servers send only pos you can actually access.
Pos dropdown system also reads the actual bg folder of the current BG to see all the created pos.
Diffstat (limited to 'src/packet_distribution.cpp')
-rw-r--r--src/packet_distribution.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/packet_distribution.cpp b/src/packet_distribution.cpp
index 8c74b768..23050836 100644
--- a/src/packet_distribution.cpp
+++ b/src/packet_distribution.cpp
@@ -595,7 +595,16 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
goto end;
if (courtroom_constructed) //We were sent a "set position" packet
+ {
w_courtroom->set_side(f_contents.at(0));
+ }
+ }
+ else if (header == "SD") //Send pos dropdown
+ {
+ if (f_contents.size() < 1)
+ goto end;
+
+ w_courtroom->set_pos_dropdown(f_contents.at(0).split("*"));
}
//server accepting char request(CC) packet
else if (header == "PV")