Convert all references to pointers in protos.h
FossilOrigin-Name: c38d75087b98b5b7a4c7963d119b8eb0bf6be2603bdf43a79e743300951a4d28
This commit is contained in:
parent
d25e07085c
commit
d9d56601bb
20 changed files with 406 additions and 383 deletions
|
@ -138,7 +138,7 @@ pingservers()
|
|||
continue;
|
||||
|
||||
p = ping;
|
||||
putint(p, lastmillis);
|
||||
putint(&p, lastmillis);
|
||||
buf.data = ping;
|
||||
buf.dataLength = p - ping;
|
||||
ENetAddress address = si.address;
|
||||
|
@ -185,13 +185,13 @@ checkpings()
|
|||
for (ServerInfo *si in servers) {
|
||||
if (addr.host == si.address.host) {
|
||||
p = ping;
|
||||
si.ping = lastmillis - getint(p);
|
||||
si.protocol = getint(p);
|
||||
si.ping = lastmillis - getint(&p);
|
||||
si.protocol = getint(&p);
|
||||
if (si.protocol != PROTOCOL_VERSION)
|
||||
si.ping = 9998;
|
||||
si.mode = getint(p);
|
||||
si.numplayers = getint(p);
|
||||
si.minremain = getint(p);
|
||||
si.mode = getint(&p);
|
||||
si.numplayers = getint(&p);
|
||||
si.minremain = getint(&p);
|
||||
sgetstr();
|
||||
si.map = @(text);
|
||||
sgetstr();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue