free scripts for a level
| 179 | |
| 180 | // free scripts for a level |
| 181 | void FreeScriptsForLevel() { |
| 182 | int i; |
| 183 | |
| 184 | // Free scripts for the objects |
| 185 | for (i = 0; i <= Highest_object_index; i++) { |
| 186 | FreeObjectScripts(&Objects[i], true); |
| 187 | } |
| 188 | |
| 189 | // Free scripts for the triggers |
| 190 | for (i = 0; i < Num_triggers; i++) { |
| 191 | FreeTriggerScript(&Triggers[i], true); |
| 192 | } |
| 193 | |
| 194 | FreeLevelScript(); |
| 195 | } |
| 196 | |
| 197 | // allocates and initializes the scripts for an object. |
| 198 | // robots, powerups, doors, etc. |
no test coverage detected