tkjn / GameTable

Online Game Table. The aims will be partially driven by the desire to use this software for gameplay similar to Warhammer Quest.
0 stars 1 forks source link

copy pog not updated on the host #17

Closed tkjn closed 10 years ago

tkjn commented 10 years ago

when a pog is copied host sends to clients but forgets in its own state

tkjn commented 10 years ago

@dezzak This was a pretty easy fix, works fine with several clients on the same machine. Care to give it a test yourself? Branch issue17

On copy pog it just sends the packet out to all clients (or host if you are a client) and when the host receives a pog it sends it to ALL clients. So clients actually get the copy they create when the server sends it back. If the server creates it, it never received the packet itself it just sent it straight to clients. Now it will receive it instead which in turn will trigger sending it to all clients.

dezzak commented 10 years ago

Yeah seems to have solved the issue as far as I can tell. Good work sir.