Multiplayer platform
Revision | e1af7f11e1c2305398f1524017aea7a3a1558663 (tree) |
---|---|
Time | 2017-05-22 02:57:32 |
Author | Face |
Commiter | Face |
OMPClient: implemented key "S" empty event sent in order to start status update
@@ -5031,12 +5031,14 @@ | ||
5031 | 5031 | int id=entry->ID; |
5032 | 5032 | LeaveCriticalSection(&orbiter); |
5033 | 5033 | 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; | |
5037 | 5038 | int res=OrbiterExtensions::GetVesselEvents(focus, &mjds, &event_types, &events, 1); |
5038 | - if (res>0) | |
5039 | + if (res>0 || dinfo.statusPinger==focobj) | |
5039 | 5040 | { |
5041 | + if (dinfo.statusPinger==focobj) dinfo.statusPinger=NULL; | |
5040 | 5042 | //send GINFO for event notification |
5041 | 5043 | //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 |
5042 | 5044 | byte *mjd=(byte *)(void *)&mjds; |