3 | StringID change = STR_AI_CONFIG_CHANGE;
| 3 | static const StringID param[] = {STR_AI_CONFIG_GAMESCRIPT, STR_AI_CONFIG_NONE, STR_AI_CONFIG_AI};
|
---|
4 | SetDParam(0, STR_AI_CONFIG_GAMESCRIPT);
| 4 | for (int i = 0; i < lengthof(param); i++) {
|
---|
5 | change_width = max(change_width, GetStringBoundingBox(change).width);
| 5 | SetDParam(0, param[i]);
|
---|
6 | SetDParam(0, STR_AI_CONFIG_NONE);
| 6 | change_width = max(change_width, GetStringBoundingBox(STR_AI_CONFIG_CHANGE).width);
|
---|
7 | change_width = max(change_width, GetStringBoundingBox(change).width);
| 7 | }
|
---|
8 | SetDParam(0, STR_AI_CONFIG_AI);
| | |
---|
9 | change_width = max(change_width, GetStringBoundingBox(change).width);
| | |
---|