Project

General

Profile

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

S3_2, S3_1 - 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");
......
case ACTION_USER_ACTION4:
/* TRANS: _User Action 4 (100% chance of success). */
return N_("%sUser Action 4%s");
case ACTION_COUNT:
fc_assert(act != ACTION_COUNT);
break;
}
return NULL;
(2-2/2)