fix ep3 meseta command
This commit is contained in:
@@ -1235,7 +1235,7 @@ struct C_Meseta_GC_Ep3_BA {
|
|||||||
|
|
||||||
struct S_Meseta_GC_Ep3_BA {
|
struct S_Meseta_GC_Ep3_BA {
|
||||||
le_uint32_t remaining_meseta;
|
le_uint32_t remaining_meseta;
|
||||||
le_uint32_t unknown; // Sylverant documents this as "total meseta ever earned"
|
le_uint32_t total_meseta_awarded;
|
||||||
le_uint32_t request_token; // Should match the token sent by the client
|
le_uint32_t request_token; // Should match the token sent by the client
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -399,7 +399,7 @@ void process_ep3_jukebox(shared_ptr<ServerState> s, shared_ptr<Client> c,
|
|||||||
uint16_t command, uint32_t, const string& data) {
|
uint16_t command, uint32_t, const string& data) {
|
||||||
const auto& in_cmd = check_size_t<C_Meseta_GC_Ep3_BA>(data);
|
const auto& in_cmd = check_size_t<C_Meseta_GC_Ep3_BA>(data);
|
||||||
|
|
||||||
S_Meseta_GC_Ep3_BA out_cmd = {1000000, 0x80E8, in_cmd.request_token};
|
S_Meseta_GC_Ep3_BA out_cmd = {1000000, 1000000, in_cmd.request_token};
|
||||||
|
|
||||||
auto l = s->find_lobby(c->lobby_id);
|
auto l = s->find_lobby(c->lobby_id);
|
||||||
if (!l || !(l->flags & Lobby::Flag::EPISODE_3_ONLY)) {
|
if (!l || !(l->flags & Lobby::Flag::EPISODE_3_ONLY)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user