* Convert the name of a team action to the type value of that team action, or * TEAM_ACTION_INVALID if not found. */
| 100 | * TEAM_ACTION_INVALID if not found. |
| 101 | */ |
| 102 | uint8 Team_ActionStringToType(const char *name) |
| 103 | { |
| 104 | uint8 type; |
| 105 | if (name == NULL) return TEAM_ACTION_INVALID; |
| 106 | |
| 107 | for (type = 0; type < TEAM_ACTION_MAX; type++) { |
| 108 | if (strcasecmp(g_table_teamActionName[type], name) == 0) return type; |
| 109 | } |
| 110 | |
| 111 | return TEAM_ACTION_INVALID; |
| 112 | } |
no outgoing calls
no test coverage detected