Skip to content

Commit

Permalink
TINSEL: Changed cdFlags to be non-static and constant
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegr committed Apr 10, 2011
1 parent 69ec4fb commit b31f39e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engines/tinsel/drives.cpp
Expand Up @@ -38,7 +38,6 @@ namespace Tinsel {
// FIXME: Avoid non-const global vars

char currentCD = '1';
static uint32 cdFlags[] = { fCd1, fCd2, fCd3, fCd4, fCd5, fCd6, fCd7, fCd8 };

static bool bChangingCD = false;
static char nextCD = '\0';
Expand Down Expand Up @@ -75,6 +74,8 @@ int GetCurrentCD() {
return (currentCD - '1' + 1);
}

const uint32 cdFlags[] = { fCd1, fCd2, fCd3, fCd4, fCd5, fCd6, fCd7, fCd8 };

void SetCD(int flags) {
if (flags & cdFlags[currentCD - '1'])
return;
Expand Down

1 comment on commit b31f39e

@lordhoto
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That should probably be static and const though, since it's only used in that file.

Please sign in to comment.