Project

General

Profile

Feature #121 » 0027-action_ui_name_default-Support-compile-time-check-of.patch

main - Marko Lindqvist, 01/05/2024 10:56 AM

View differences:

common/actions.c
**************************************************************************/
const char *action_ui_name_default(int act)
{
switch (act) {
switch ((enum gen_action)act) {
case ACTION_SPY_POISON:
/* TRANS: _Poison City (3% chance of success). */
return N_("%sPoison City%s");
......
return N_("%sUser Action 4%s");
case ACTION_GAIN_VETERANCY:
return N_("%sGain Veterancy%s");
case ACTION_COUNT:
fc_assert(act != ACTION_COUNT);
break;
}
return NULL;
(1-1/2)