Skip to content

Commit

Permalink
win/lose reverted to EOG, as it is inaccurate.
Browse files Browse the repository at this point in the history
  • Loading branch information
forcecore committed Jan 4, 2015
1 parent f97bfd4 commit 2dabf96
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions chunks.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,12 @@ def decode_queue_cmd( self, UNITNAMES, AFLD_UNITS, UNITCOST ) :

if ( not data ) or ( len( data ) <= 2 ) : # Just "" for net payload (Only FF in payload)
# end of game marker?
self.cmd_ty = Command.LOSE
#self.cmd_ty = Command.LOSE incorrect :(
self.cmd_ty = Command.EOG
self.target = self.player_id
elif data[ 1 ] == 0x02 :
self.cmd_ty = Command.WIN
#self.cmd_ty = Command.WIN incorrect :(
self.cmd_ty = Command.EOG
self.target = self.player_id
elif len( data ) <= 18 :
self.cmd_ty = Command.EOG
Expand Down

0 comments on commit 2dabf96

Please sign in to comment.