Ticket #3476: 3476_start_time_lobby_bot_v1.patch

File 3476_start_time_lobby_bot_v1.patch, 637 bytes (added by Imarok, 8 years ago)

Lobby bot now sets the game start time property when game is started

  • source/tools/XpartaMuPP/XpartaMuPP.py

     
    307307        self.gameList[JID]['state'] = 'running'
    308308      self.gameList[JID]['nbp'] = data['nbp']
    309309      self.gameList[JID]['players'] = data['players']
     310      if 'startTime' not in self.gameList[JID]:
     311        self.gameList[JID]['startTime'] = time.time()
    310312
    311313## Class which manages different game reports from clients ##
    312314##   and calls leaderboard functions as appropriate.       ##