From 24e6fe624376685e6c63861aa132c6f6cdf2bd4d Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 26 Apr 2024 16:57:14 +0200 Subject: [PATCH] renamed function --- src/libgame/misc.c | 2 +- src/libgame/misc.h | 2 +- src/libgame/setup.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libgame/misc.c b/src/libgame/misc.c index 47cabacc..5e63c31f 100644 --- a/src/libgame/misc.c +++ b/src/libgame/misc.c @@ -2955,7 +2955,7 @@ boolean get_boolean_from_string(char *s) return result; } -int get_switch3_from_string(char *s) +int get_switch_3_state_from_string(char *s) { char *s_lower = getStringToLower(s); int result = FALSE; diff --git a/src/libgame/misc.h b/src/libgame/misc.h index 8082ee36..2b927e57 100644 --- a/src/libgame/misc.h +++ b/src/libgame/misc.h @@ -269,7 +269,7 @@ char getValidConfigValueChar(char); int get_integer_from_string(char *); boolean get_boolean_from_string(char *); -int get_switch3_from_string(char *); +int get_switch_3_state_from_string(char *); int get_player_nr_from_string(char *); ListNode *newListNode(void); diff --git a/src/libgame/setup.c b/src/libgame/setup.c index 9aa4ab31..65f0eec4 100644 --- a/src/libgame/setup.c +++ b/src/libgame/setup.c @@ -3234,7 +3234,7 @@ void setSetupInfo(struct TokenInfo *token_info, break; case TYPE_SWITCH_3_STATES: - *(int *)setup_value = get_switch3_from_string(token_value); + *(int *)setup_value = get_switch_3_state_from_string(token_value); break; case TYPE_KEY: -- 2.34.1