SAGA2: Rename enums in mission.h

This commit is contained in:
Eugene Sandulenko 2022-10-29 00:38:48 +02:00
parent bafa530442
commit 933f52cfd4
No known key found for this signature in database
GPG Key ID: 014D387312D34F08
2 changed files with 6 additions and 6 deletions

View File

@ -39,7 +39,7 @@ ActiveMission *ActiveMission::newMission(ObjectID genID, uint16 script) {
ActiveMission *ms = nullptr;
for (i = 0; i < ARRAYSIZE(activeMissions); i++) {
if (!(activeMissions[i]._data.missionFlags & inUse)) {
if (!(activeMissions[i]._data.missionFlags & kInUse)) {
ms = &activeMissions[i];
break;
}
@ -50,7 +50,7 @@ ActiveMission *ActiveMission::newMission(ObjectID genID, uint16 script) {
ms->_data.missionID = i;
ms->_data.generatorID = genID;
ms->_data.missionScript = script;
ms->_data.missionFlags |= inUse;
ms->_data.missionFlags |= kInUse;
ms->_data.numKnowledgeIDs = ms->_data.numObjectIDs = 0;
@ -68,7 +68,7 @@ int ActiveMission::findMission(ObjectID genID) {
int i;
for (i = 0; i < ARRAYSIZE(activeMissions); i++) {
if (activeMissions[i]._data.missionFlags & inUse
if (activeMissions[i]._data.missionFlags & kInUse
&& activeMissions[i]._data.generatorID == genID) {
return i;
}
@ -255,7 +255,7 @@ void ActiveMission::cleanup() {
}
_data.numKnowledgeIDs = _data.numObjectIDs = 0;
_data.missionFlags &= ~inUse;
_data.missionFlags &= ~kInUse;
}
//-----------------------------------------------------------------------
@ -265,7 +265,7 @@ void initMissions() {
int i;
for (i = 0; i < ARRAYSIZE(activeMissions); i++)
activeMissions[i]._data.missionFlags &= ~inUse;
activeMissions[i]._data.missionFlags &= ~kInUse;
}
void saveMissions(Common::OutSaveFile *outS) {

View File

@ -44,7 +44,7 @@ class ActiveMission;
// Mission flags
enum missionFlags {
inUse = (1 << 0) // this mission struct in use
kInUse = (1 << 0) // this mission struct in use
};
struct ActiveMissionData {