comparison src/town_cmd.cpp @ 12452:499dee1c27b6 draft

(svn r16886) -Codechange: unify naming of some string IDs related to string codes and group them logically
author rubidium <rubidium@openttd.org>
date Mon, 20 Jul 2009 11:21:57 +0000
parents 2d2c69d25637
children c133b51890f4
comparison
equal deleted inserted replaced
12451:7b6e933f3f43 12452:499dee1c27b6
1404 const Town *t; 1404 const Town *t;
1405 FOR_ALL_TOWNS(t) { 1405 FOR_ALL_TOWNS(t) {
1406 /* We can't just compare the numbers since 1406 /* We can't just compare the numbers since
1407 * several numbers may map to a single name. */ 1407 * several numbers may map to a single name. */
1408 SetDParam(0, t->index); 1408 SetDParam(0, t->index);
1409 GetString(buf2, STR_TOWN, lastof(buf2)); 1409 GetString(buf2, STR_TOWN_NAME, lastof(buf2));
1410 if (strcmp(buf1, buf2) == 0) return false; 1410 if (strcmp(buf1, buf2) == 0) return false;
1411 } 1411 }
1412 1412
1413 return true; 1413 return true;
1414 } 1414 }