Skip to content

Commit

Permalink
mission.cpp: Add const
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Nov 17, 2023
1 parent 4ac58c1 commit c5b2c0c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
26 changes: 13 additions & 13 deletions src/mission.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ static UBYTE bPlayCountDown;

//FUNCTIONS**************
static void addLandingLights(UDWORD x, UDWORD y);
static bool startMissionOffClear(char *pGame);
static bool startMissionOffKeep(char *pGame);
static bool startMissionCampaignStart(char *pGame);
static bool startMissionCampaignChange(char *pGame);
static bool startMissionCampaignExpand(char *pGame);
static bool startMissionCampaignExpandLimbo(char *pGame);
static bool startMissionOffClear(const char *pGame);
static bool startMissionOffKeep(const char *pGame);
static bool startMissionCampaignStart(const char *pGame);
static bool startMissionCampaignChange(const char *pGame);
static bool startMissionCampaignExpand(const char *pGame);
static bool startMissionCampaignExpandLimbo(const char *pGame);
static bool startMissionBetween();
static void endMissionCamChange();
static void endMissionOffClear();
Expand Down Expand Up @@ -376,7 +376,7 @@ void setMissionCountDown()
}


bool startMission(LEVEL_TYPE missionType, char *pGame)
bool startMission(LEVEL_TYPE missionType, const char *pGame)
{
bool loaded = true;

Expand Down Expand Up @@ -1103,7 +1103,7 @@ void saveCampaignData()


//start an off world mission - clearing the object lists
bool startMissionOffClear(char *pGame)
bool startMissionOffClear(const char *pGame)
{
debug(LOG_SAVE, "called for %s", pGame);

Expand All @@ -1124,7 +1124,7 @@ bool startMissionOffClear(char *pGame)
}

//start an off world mission - keeping the object lists
bool startMissionOffKeep(char *pGame)
bool startMissionOffKeep(const char *pGame)
{
debug(LOG_SAVE, "called for %s", pGame);
saveMissionData();
Expand All @@ -1143,7 +1143,7 @@ bool startMissionOffKeep(char *pGame)
return true;
}

bool startMissionCampaignStart(char *pGame)
bool startMissionCampaignStart(const char *pGame)
{
debug(LOG_SAVE, "called for %s", pGame);

Expand All @@ -1164,7 +1164,7 @@ bool startMissionCampaignStart(char *pGame)
return true;
}

bool startMissionCampaignChange(char *pGame)
bool startMissionCampaignChange(const char *pGame)
{
// Clear out all intelligence screen messages
freeMessages();
Expand All @@ -1191,7 +1191,7 @@ bool startMissionCampaignChange(char *pGame)
return true;
}

bool startMissionCampaignExpand(char *pGame)
bool startMissionCampaignExpand(const char *pGame)
{
//load in the new game details
if (!loadGame(pGame, KEEPOBJECTS, !FREEMEM, false))
Expand All @@ -1203,7 +1203,7 @@ bool startMissionCampaignExpand(char *pGame)
return true;
}

bool startMissionCampaignExpandLimbo(char *pGame)
bool startMissionCampaignExpandLimbo(const char *pGame)
{
saveMissionLimboData();

Expand Down
2 changes: 1 addition & 1 deletion src/mission.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void releaseMission();
/** On the PC - sets the countdown played flag. */
void setMissionCountDown();

bool startMission(LEVEL_TYPE missionType, char *pGame);
bool startMission(LEVEL_TYPE missionType, const char *pGame);
void endMission();

/** Initialise the mission stuff for a save game. */
Expand Down

0 comments on commit c5b2c0c

Please sign in to comment.