Find the index to the Force Power in powerEnum array
| 4517 | |
| 4518 | // Find the index to the Force Power in powerEnum array |
| 4519 | static qboolean UI_GetForcePowerIndex ( const char *forceName, short *forcePowerI ) |
| 4520 | { |
| 4521 | int i; |
| 4522 | |
| 4523 | // Find a match for the forceName passed in |
| 4524 | for (i=0;i<MAX_POWER_ENUMS;i++) |
| 4525 | { |
| 4526 | if ( !Q_stricmp(forceName, powerEnums[i].title ) ) |
| 4527 | { |
| 4528 | *forcePowerI = i; |
| 4529 | return(qtrue); |
| 4530 | } |
| 4531 | } |
| 4532 | |
| 4533 | *forcePowerI = FP_UPDATED_NONE; // Didn't find it |
| 4534 | |
| 4535 | return(qfalse); |
| 4536 | } |
| 4537 | |
| 4538 | // Set the fields for the allocation of force powers (Used by Force Power Allocation screen) |
| 4539 | static void UI_InitAllocForcePowers ( const char *forceName ) |
no test coverage detected