comparison src/newgrf_station.cpp @ 6106:230764f1a316 draft

(svn r8841) -Fix Remove {,u}intswap() and replace them by Swap()
author tron <tron@openttd.org>
date Thu, 22 Feb 2007 08:43:02 +0000
parents de5286746a3a
children 5cf0c6849eee
comparison
equal deleted inserted replaced
6105:c9001579bca1 6106:230764f1a316
198 uint32 GetPlatformInfo(Axis axis, byte tile, int platforms, int length, int x, int y, bool centred) 198 uint32 GetPlatformInfo(Axis axis, byte tile, int platforms, int length, int x, int y, bool centred)
199 { 199 {
200 uint32 retval = 0; 200 uint32 retval = 0;
201 201
202 if (axis == AXIS_X) { 202 if (axis == AXIS_X) {
203 intswap(platforms, length); 203 Swap(platforms, length);
204 intswap(x, y); 204 Swap(x, y);
205 } 205 }
206 206
207 /* Limit our sizes to 4 bits */ 207 /* Limit our sizes to 4 bits */
208 platforms = min(15, platforms); 208 platforms = min(15, platforms);
209 length = min(15, length); 209 length = min(15, length);