* Convert the name of an action to the type value of that action, or * ACTION_INVALID if not found. */
| 351 | * ACTION_INVALID if not found. |
| 352 | */ |
| 353 | uint8 Unit_ActionStringToType(const char *name) |
| 354 | { |
| 355 | uint8 type; |
| 356 | if (name == NULL) return ACTION_INVALID; |
| 357 | |
| 358 | for (type = 0; type < ACTION_MAX; type++) { |
| 359 | if (strcasecmp(g_table_actionInfo[type].name, name) == 0) return type; |
| 360 | } |
| 361 | |
| 362 | return ACTION_INVALID; |
| 363 | } |
| 364 | |
| 365 | /** |
| 366 | * Convert the name of a movement to the type value of that movement, or |
no outgoing calls
no test coverage detected