Fix replays for network games. Fixes #4866.
Merge pull request #4904 from pchote/replay-fix

Fix replays for network games.