Skip to content

Commit

Permalink
Fixed a rather critical networking bug which I am surprised survived …
Browse files Browse the repository at this point in the history
…this long.
  • Loading branch information
Orpheon committed Sep 9, 2014
1 parent 78a3cf8 commit 192e9c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/networker.py
Expand Up @@ -78,7 +78,8 @@ def service_new_player(self, server, game, newplayer):
hello_event = networking.event_serialize.ServerEventHello(server.name, newplayer.id, server.game.maxplayers, state.map.mapname, constants.GAME_VERSION_NUMBER)
map_event = networking.event_serialize.ServerChangeMap(state.map.mapname)
events = [hello_event, map_event, networking.event_serialize.ServerEventFullUpdate(statebuffer)]
events[1].time = state.time
for event in events:
event.time = state.time

newplayer.send_fullupdate(self, game, events)

Expand Down

0 comments on commit 192e9c7

Please sign in to comment.