All pastes #898403 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-02-10 09:02 UTC
rendered paste body
/**
 * @brief Removes a mission from mission global array.
 */
static void CP_MissionRemove (mission_t *mission)
{
	linkedList_t *list = ccs.missions;
	mission_t *removedMission = NULL;

	while (list) {
		removedMission = (mission_t *)list->data;
		if (removedMission == mission) {
			break;
		}
		list = list->next;
	}

	if (removedMission)
		LIST_Remove(&ccs.missions, list);
}