Old revision #pvaqviyqt | 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(2, GetConfig(this->slot)->GetInfo()->GetName()); | 16 | SetDParamStr(1, GetConfig(this->slot)->GetInfo()->GetName()); |
17 | text = STR_JUST_RAW_STRING; | ||
18 | } else { | 16 | } else { |
19 | text = (slot == OWNER_DEITY) ? STR_AI_CONFIG_NONE : STR_AI_CONFIG_RANDOM_AI; | 19 | char name[1024]; |
20 | // char name[1024]; | 20 | GetString(name, (slot == OWNER_DEITY) ? STR_AI_CONFIG_NONE : STR_AI_CONFIG_RANDOM_AI, lastof(name)); |
21 | // GetString(name, (slot == OWNER_DEITY) ? STR_AI_CONFIG_NONE : STR_AI_CONFIG_RANDOM_AI, lastof(name)); | 21 | const char *script_name = stredup(name); |
22 | // const char *script_name = stredup(name); | 22 | SetDParamStr(1, script_name); |
23 | // SetDParamStr(1, (slot == OWNER_DEITY) ? STR_AI_CONFIG_NONE : STR_AI_CONFIG_RANDOM_AI); | ||
24 | } | 21 | } |
25 | |||
26 | } | 22 | } |
27 | } | 23 | } |