Skip to content

Commit

Permalink
Fix inventory_slot when creating PvP rooms
Browse files Browse the repository at this point in the history
  • Loading branch information
Levak committed Jan 10, 2020
1 parent 4ba3c80 commit 5853244
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/wb_gameroom.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ typedef struct
unsigned int max_players;
unsigned int round_limit;
unsigned int class_restriction;
unsigned int inventory_slot;
unsigned long int inventory_slot;
} s_gr_custom_params;

typedef struct
Expand Down
2 changes: 1 addition & 1 deletion include/wb_xmpp_wf.h
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ enum pvp_mode

typedef void (*f_gameroom_update_pvp_cb)(void *args);
void xmpp_iq_gameroom_update_pvp(const char *mission_key, enum pvp_mode flags,
int max_players, int inventory_slot,
int max_players, long int inventory_slot,
f_gameroom_update_pvp_cb cb, void *args);

typedef void (*f_get_last_seen_date_cb)(const char *profile_id,
Expand Down
4 changes: 2 additions & 2 deletions src/xmpp_wf/get/xmpp_iq_gameroom_update_pvp.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ static void xmpp_iq_gameroom_update_pvp_cb(const char *msg,
void xmpp_iq_gameroom_update_pvp(const char *mission_key,
enum pvp_mode flags,
int max_players,
int inventory_slot,
long int inventory_slot,
f_gameroom_update_pvp_cb cb,
void *args)
{
Expand All @@ -129,7 +129,7 @@ void xmpp_iq_gameroom_update_pvp(const char *mission_key,
" auto_team_balance='%d'"
" dead_can_chat='%d'"
" join_in_the_process='%d'"
" max_players='%d' inventory_slot='%d'>"
" max_players='%d' inventory_slot='%ld'>"
" <class_rifleman enabled='1' class_id='0'/>"
" <class_engineer enabled='1' class_id='4'/>"
" <class_medic enabled='1' class_id='3'/>"
Expand Down

0 comments on commit 5853244

Please sign in to comment.