Ticket #3143: 3143_lobby_data_v2.6_lobby_bot.patch

File 3143_lobby_data_v2.6_lobby_bot.patch, 916 bytes (added by Imarok, 8 years ago)

Refreshes the "players" too when executing changeGameState

  • source/tools/XpartaMuPP/XpartaMuPP.py

     
    302302      if self.gameList[JID]['nbp-init'] > data['nbp']:
    303303        logging.debug("change game (%s) state from %s to %s", JID, self.gameList[JID]['state'], 'waiting')
    304304        self.gameList[JID]['nbp'] = data['nbp']
     305        self.gameList[JID]['players'] = data['players']
    305306        self.gameList[JID]['state'] = 'waiting'
    306307      else:
    307308        logging.debug("change game (%s) state from %s to %s", JID, self.gameList[JID]['state'], 'running')
    308309        self.gameList[JID]['nbp'] = data['nbp']
     310        self.gameList[JID]['players'] = data['players']
    309311        self.gameList[JID]['state'] = 'running'
    310312
    311313## Class which manages different game reports from clients ##