Project

General

Profile

Bug #766 » 0015-rscompat-Update-correct-actions-as-Conquer-City-Shri.patch

Marko Lindqvist, 07/28/2024 04:11 PM

View differences:

common/actions.c
const char *gen_action_name_update_cb(const char *old_name)
{
if (is_ruleset_compat_mode()) {
if (fc_strcasecmp("Conquer City", old_name)) {
if (!fc_strcasecmp("Conquer City", old_name)) {
return "Conquer City Shrink";
}
if (fc_strcasecmp("Conquer City 2", old_name)) {
if (!fc_strcasecmp("Conquer City 2", old_name)) {
return "Conquer City Shrink 2";
}
if (fc_strcasecmp("Conquer City 3", old_name)) {
if (!fc_strcasecmp("Conquer City 3", old_name)) {
return "Conquer City Shrink 3";
}
if (fc_strcasecmp("Conquer City 4", old_name)) {
if (!fc_strcasecmp("Conquer City 4", old_name)) {
return "Conquer City Shrink 4";
}
}
server/ruleset/rscompat.c
**************************************************************************/
const char *blocked_by_old_name_3_3(const char *new_name)
{
if (fc_strcasecmp("conquer_city_shrink_blocked_by", new_name)) {
if (!fc_strcasecmp("conquer_city_shrink_blocked_by", new_name)) {
return "conquer_city_blocked_by";
}
if (fc_strcasecmp("conquer_city_shrink_2_blocked_by", new_name)) {
if (!fc_strcasecmp("conquer_city_shrink_2_blocked_by", new_name)) {
return "conquer_city_2_blocked_by";
}
if (fc_strcasecmp("conquer_city_shrink_3_blocked_by", new_name)) {
if (!fc_strcasecmp("conquer_city_shrink_3_blocked_by", new_name)) {
return "conquer_city_3_blocked_by";
}
if (fc_strcasecmp("conquer_city_shrink_4_blocked_by", new_name)) {
if (!fc_strcasecmp("conquer_city_shrink_4_blocked_by", new_name)) {
return "conquer_city_4_blocked_by";
}
......
**************************************************************************/
const char *ui_name_old_name_3_3(const char *new_name)
{
if (fc_strcasecmp("ui_name_conquer_city", new_name)) {
return "ui_name_conquer_city_shrink";
if (!fc_strcasecmp("ui_name_conquer_city_shrink", new_name)) {
return "ui_name_conquer_city";
}
if (fc_strcasecmp("ui_name_conquer_city_2", new_name)) {
return "ui_name_conquer_city_shrink_2";
if (!fc_strcasecmp("ui_name_conquer_city_shrink_2", new_name)) {
return "ui_name_conquer_city_2";
}
if (fc_strcasecmp("ui_name_conquer_city_3", new_name)) {
return "ui_name_conquer_city_shrink_3";
if (!fc_strcasecmp("ui_name_conquer_city_shrink_3", new_name)) {
return "ui_name_conquer_city_3";
}
if (fc_strcasecmp("ui_name_conquer_city_4", new_name)) {
return "ui_name_conquer_city_shrink_4";
if (!fc_strcasecmp("ui_name_conquer_city_shrink_4", new_name)) {
return "ui_name_conquer_city_4";
}
return nullptr;
(2-2/2)