Project

General

Profile

Feature #550 » 0025-Ruledit-Clear-helptext-of-newly-initialized-objects.patch

S3_1 - Marko Lindqvist, 05/04/2024 02:18 PM

View differences:

tools/ruledit/tab_building.cpp
name_set(&(pimpr->name), 0, "New Building");
BV_CLR_ALL(pimpr->flags);
if (pimpr->helptext != nullptr) {
strvec_clear(pimpr->helptext);
}
return true;
}
tools/ruledit/tab_extras.cpp
name_set(&(pextra->name), 0, "New Extra");
BV_CLR_ALL(pextra->flags);
if (pextra->helptext != nullptr) {
strvec_clear(pextra->helptext);
}
return true;
}
tools/ruledit/tab_good.cpp
name_set(&(pgood->name), 0, "New Good");
BV_CLR_ALL(pgood->flags);
if (pgood->helptext != nullptr) {
strvec_clear(pgood->helptext);
}
return true;
}
tools/ruledit/tab_gov.cpp
}
name_set(&(pgov->name), 0, "New Government");
if (pgov->helptext != nullptr) {
strvec_clear(pgov->helptext);
}
return true;
}
tools/ruledit/tab_multiplier.cpp
}
name_set(&(pmul->name), 0, "New Multiplier");
if (pmul->helptext != nullptr) {
strvec_clear(pmul->helptext);
}
return true;
}
tools/ruledit/tab_tech.cpp
padv->require[AR_ROOT] = none;
name_set(&(padv->name), 0, "New Tech");
BV_CLR_ALL(padv->flags);
if (padv->helptext != nullptr) {
strvec_clear(padv->helptext);
}
return true;
}
tools/ruledit/tab_terrains.cpp
name_set(&(pterr->name), 0, "New Terrain");
BV_CLR_ALL(pterr->flags);
if (pterr->helptext != nullptr) {
strvec_clear(pterr->helptext);
}
return true;
}
tools/ruledit/tab_unit.cpp
name_set(&(ptype->name), 0, "New Unit");
BV_CLR_ALL(ptype->flags);
if (ptype->helptext != nullptr) {
strvec_clear(ptype->helptext);
}
return true;
}
(2-2/2)