| 91 | } |
| 92 | |
| 93 | void InitGamePaths() { |
| 94 | static bool f_game_paths_init = false; |
| 95 | int i; |
| 96 | |
| 97 | if (f_game_paths_init) { |
| 98 | // Clear out the current path info |
| 99 | for (i = 0; i < MAX_GAME_PATHS; i++) { |
| 100 | FreeGamePath(i); |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | f_game_paths_init = true; |
| 105 | |
| 106 | for (i = 0; i < MAX_GAME_PATHS; i++) { |
| 107 | GamePaths[i].num_nodes = 0; |
| 108 | GamePaths[i].used = 0; |
| 109 | } |
| 110 | |
| 111 | Num_game_paths = 0; |
| 112 | } |
| 113 | |
| 114 | // searches through GamePath index and returns index of path matching name |
| 115 | // returns -1 if not found |
no test coverage detected