• R/O
  • SSH

OMP: Commit

Multiplayer platform


Commit MetaInfo

Revisione1af7f11e1c2305398f1524017aea7a3a1558663 (tree)
Time2017-05-22 02:57:32
AuthorFace
CommiterFace

Log Message

OMPClient: implemented key "S" empty event sent in order to start status update

Change Summary

Incremental Difference

diff -r 743e5b381086 -r e1af7f11e1c2 Orbitersdk/samples/OMP/OMPClient/OMPClient.cpp
--- a/Orbitersdk/samples/OMP/OMPClient/OMPClient.cpp Sun May 21 19:56:26 2017 +0200
+++ b/Orbitersdk/samples/OMP/OMPClient/OMPClient.cpp Sun May 21 19:57:32 2017 +0200
@@ -5031,12 +5031,14 @@
50315031 int id=entry->ID;
50325032 LeaveCriticalSection(&orbiter);
50335033 LeaveCriticalSection(&hashing);
5034- char *event_types;
5035- char *events;
5036- double mjds;
5034+ char empty=0x0;
5035+ char *event_types=∅
5036+ char *events=∅
5037+ double mjds=0;
50375038 int res=OrbiterExtensions::GetVesselEvents(focus, &mjds, &event_types, &events, 1);
5038- if (res>0)
5039+ if (res>0 || dinfo.statusPinger==focobj)
50395040 {
5041+ if (dinfo.statusPinger==focobj) dinfo.statusPinger=NULL;
50405042 //send GINFO for event notification
50415043 //NOTE: the actual usage of an event here is just for backwards compatibility, so the new client can connect to an old server without upsetting old clients with misformed event infos
50425044 byte *mjd=(byte *)(void *)&mjds;
Show on old repository browser