Closed russleyshaw closed 10 years ago
Looks like this isn't being detected correctly still.
GLOG from game where player 1 (vs player 0) loses his base and doesn't win: https://www.dropbox.com/s/zak4i74vvpofjjl/Player1NOLOSE.gamelog
Fixed this; error was that it was checking every unit, not just the hangars.
Another Problem >.>
Match where Player 1 (LHS) loses more of his hangers than Player 2 (RHS) but still wins with win reason
You win!
Player 1 wins because both are equally matched.
Player 1 has 3 hangar tiles left: ~114, 14, 180 hp respectively Player 2 has 5 all with health > 100.
Glog: https://www.dropbox.com/s/albkm9xgq40urdh/WrongWinner.gamelog
(Also, this was a very exciting rubber-bandy fight)
Whoops, didn't even notice that code; fixed it now.
The check winner function should be updated to fit the new codegen.
There shouldn't be much logical changes, just changes in referencing.