Branch: refs/heads/master
Home: https://github.com/Warzone2100/warzone2100
Commit: 569975e6ea1f3a00c793b2f2434783f55a584ae8
https://github.com/Warzone2100/warzone2100/commit/569975e6ea1f3a00c793b2f2434783f55a584ae8
Author: per <[email protected]>
Date: 2013-08-10 (Sat, 10 Aug 2013)
Changed paths:
M lib/netplay/netplay.cpp
M lib/netplay/netplay.h
M src/action.cpp
M src/multiplay.cpp
M src/multiplay.h
M src/qtscript.cpp
M src/qtscript.h
M src/qtscriptfuncs.cpp
Log Message:
-----------
Add new function syncRequest(req_id, x, y, obj1, obj2) and new event
eventSyncRequest(from, req_id, x, y, obj1, obj2). This unassuming pair allows
you to synchronize javascript functions
that would otherwise cause desync in a game, as any sync request that is
generated is a tiny bit later triggered as an event simultaneously on all
clients (and all scripts!). Great care
must be taken to define only sync requests that can be validated against
attempts at cheating. For example, if for some reason a sync request is defined
that allows a player to order a
unit to hold position, you must check that the request comes from the player
that own this droid. Any unused parameter can be filled with null or zero; the
obj parameters can be omitted.
Patch reviewed by Cyp.
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Warzone2100-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/warzone2100-commits