Old revision #pjkzbg4qk | New revision #pyni4xdxb | ||
---|---|---|---|
11 | case WID_AIS_CAPTION: | 11 | case WID_AIS_CAPTION: |
12 | SetDParam(0, (this->slot == OWNER_DEITY) ? STR_AI_SETTINGS_CAPTION_GAMESCRIPT : STR_AI_SETTINGS_CAPTION_AI); | 12 | SetDParam(0, (this->slot == OWNER_DEITY) ? STR_AI_SETTINGS_CAPTION_GAMESCRIPT : STR_AI_SETTINGS_CAPTION_AI); |
13 | 13 | ||
14 | |||
15 | if (GetConfig(this->slot)->GetInfo() != NULL) { | 14 | if (GetConfig(this->slot)->GetInfo() != NULL) { |
16 | SetDParamStr(1, GetConfig(this->slot)->GetInfo()->GetName()); | 15 | SetDParamStr(1, GetConfig(this->slot)->GetInfo()->GetName()); |
17 | |||
18 | } else { | 16 | } else { |
19 | char name[1024]; | 17 | char name[1024]; |
20 | GetString(name, (slot == OWNER_DEITY) ? STR_AI_CONFIG_NONE : STR_AI_CONFIG_RANDOM_AI, lastof(name)); | 18 | GetString(name, (slot == OWNER_DEITY) ? STR_AI_CONFIG_NONE : STR_AI_CONFIG_RANDOM_AI, lastof(name)); |