Created a NetworkGameObserver class able to extend the serialization code of GameObserver to synchronize and forward game actions on the network
Fixes in GameObserver serialization/deserialization code Fixes in JNetwork and JSocket on windows Various code cleanup (currentGamePhase access in particular) Updated GUI code to re-enable a basic network GUI Activated threaded tests on Windows. It uses 4 threads by default.
This commit is contained in:
@@ -824,7 +824,7 @@ int MTGCardInstance::removeBlocker(MTGCardInstance * blocker)
|
||||
// Blockers can be removed "manually" (by the blocking player) at the Blockers step,
|
||||
// Or "automatically" in the damage phase, when they die and regenerate (see http://code.google.com/p/wagic/issues/detail?id=563 )
|
||||
// In the second case, we still want the card to be marked as "blocked" this turn
|
||||
if (!blockers.size() && observer->currentGamePhase == MTG_PHASE_COMBATBLOCKERS)
|
||||
if (!blockers.size() && observer->getCurrentGamePhase() == MTG_PHASE_COMBATBLOCKERS)
|
||||
{
|
||||
blocked = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user