summaryrefslogtreecommitdiff
path: root/src/newgrf_townname.cpp
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/newgrf_townname.cpp
parent7a4d96f629a9bd447846f8569fad78cf8e5196c5 (diff)
downloadopenttd-c0a2c0c23e129cb81400c5204fc9d0eedd9afb85.tar.xz
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
Diffstat (limited to 'src/newgrf_townname.cpp')
-rw-r--r--src/newgrf_townname.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_townname.cpp b/src/newgrf_townname.cpp
index 321635d81..1d46e1983 100644
--- a/src/newgrf_townname.cpp
+++ b/src/newgrf_townname.cpp
@@ -44,7 +44,7 @@ void DelGRFTownName(uint32 grfid)
for (int i = 0; i < 128; i++) {
for (int j = 0; j < t->nbparts[i]; j++) {
for (int k = 0; k < t->partlist[i][j].partcount; k++) {
- if (!HASBIT(t->partlist[i][j].parts[k].prob, 7)) free(t->partlist[i][j].parts[k].data.text);
+ if (!HasBit(t->partlist[i][j].parts[k].prob, 7)) free(t->partlist[i][j].parts[k].data.text);
}
free(t->partlist[i][j].parts);
}
@@ -70,7 +70,7 @@ static char *RandomPart(char *buf, GRFTownName *t, uint32 seed, byte id, const c
byte prob = t->partlist[id][i].parts[j].prob;
maxprob -= GB(prob, 0, 7);
if (maxprob > r) continue;
- if (HASBIT(prob, 7)) {
+ if (HasBit(prob, 7)) {
buf = RandomPart(buf, t, seed, t->partlist[id][i].parts[j].data.id, last);
} else {
buf = strecat(buf, t->partlist[id][i].parts[j].data.text, last);