summaryrefslogtreecommitdiff
path: root/src/town_map.h
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2007-11-19 18:38:10 +0000
committerskidd13 <skidd13@openttd.org>2007-11-19 18:38:10 +0000
commit98f66552beadfa14cf28cd126fc462a5abe3087b (patch)
tree7818a2f346fc9a85d84a2a844989ea1a90136b90 /src/town_map.h
parent9e385d2427fd017e90182aa152e488ce026ace19 (diff)
downloadopenttd-98f66552beadfa14cf28cd126fc462a5abe3087b.tar.xz
(svn r11475) -Codechange: rename clamp and clampu to Clamp and ClampU to fit with the coding style
Diffstat (limited to 'src/town_map.h')
-rw-r--r--src/town_map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_map.h b/src/town_map.h
index 883b33226..1230d8f71 100644
--- a/src/town_map.h
+++ b/src/town_map.h
@@ -283,7 +283,7 @@ static inline void IncHouseConstructionTick(TileIndex t)
/* House is now completed.
* Store the year of construction as well, for newgrf house purpose */
SetHouseCompleted(t, true);
- _m[t].m5 = clamp(_cur_year - ORIGINAL_BASE_YEAR, 0, 0xFF);
+ _m[t].m5 = Clamp(_cur_year - ORIGINAL_BASE_YEAR, 0, 0xFF);
}
}