summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2007-11-19 21:02:30 +0000
committerskidd13 <skidd13@openttd.org>2007-11-19 21:02:30 +0000
commitc0a2c0c23e129cb81400c5204fc9d0eedd9afb85 (patch)
tree21212e0b25777aac62f30d88b981e2bd624c4616 /src/network
parent7a4d96f629a9bd447846f8569fad78cf8e5196c5 (diff)
downloadopenttd-c0a2c0c23e129cb81400c5204fc9d0eedd9afb85.tar.xz
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
Diffstat (limited to 'src/network')
-rw-r--r--src/network/core/udp.cpp4
-rw-r--r--src/network/network_server.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/network/core/udp.cpp b/src/network/core/udp.cpp
index 0c9c74ed1..8da8ba6a6 100644
--- a/src/network/core/udp.cpp
+++ b/src/network/core/udp.cpp
@@ -160,13 +160,13 @@ void NetworkUDPSocketHandler::Send_NetworkGameInfo(Packet *p, const NetworkGameI
/* Count number of GRFs to send information about */
for (c = info->grfconfig; c != NULL; c = c->next) {
- if (!HASBIT(c->flags, GCF_STATIC)) count++;
+ if (!HasBit(c->flags, GCF_STATIC)) count++;
}
p->Send_uint8 (count); // Send number of GRFs
/* Send actual GRF Identifications */
for (c = info->grfconfig; c != NULL; c = c->next) {
- if (!HASBIT(c->flags, GCF_STATIC)) this->Send_GRFIdentifier(p, c);
+ if (!HasBit(c->flags, GCF_STATIC)) this->Send_GRFIdentifier(p, c);
}
}
diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp
index 386c243cc..0c484d516 100644
--- a/src/network/network_server.cpp
+++ b/src/network/network_server.cpp
@@ -197,12 +197,12 @@ DEF_SERVER_SEND_COMMAND_PARAM(PACKET_SERVER_CHECK_NEWGRFS)(NetworkTCPSocketHandl
uint grf_count = 0;
for (c = _grfconfig; c != NULL; c = c->next) {
- if (!HASBIT(c->flags, GCF_STATIC)) grf_count++;
+ if (!HasBit(c->flags, GCF_STATIC)) grf_count++;
}
p->Send_uint8 (grf_count);
for (c = _grfconfig; c != NULL; c = c->next) {
- if (!HASBIT(c->flags, GCF_STATIC)) cs->Send_GRFIdentifier(p, c);
+ if (!HasBit(c->flags, GCF_STATIC)) cs->Send_GRFIdentifier(p, c);
}
cs->Send_Packet(p);