Skip to content

Commit

Permalink
Avoid operator ++ on bool
Browse files Browse the repository at this point in the history
  • Loading branch information
th-otto committed Mar 24, 2024
1 parent 77e2da0 commit 122b474
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common/vqatask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ VQAErrorType VQA_Play(VQAHandle* handle, VQAPlayMode mode)
}

if (data->Flags & VQA_DATA_FLAG_VIDEO_MEMORY_SET) {
++VQAMovieDone;
VQAMovieDone = true;
} else {
rc = (VQAErrorType)VQA_LoadFrame(handle);

Expand Down
2 changes: 1 addition & 1 deletion redalert/ending.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void Nod_Ending(void)
bool printedtext = false;
while (!done) {
if (!printedtext && !Is_Sample_Playing(kanefinl)) {
printedtext++;
printedtext = true;
Alloc_Object(new ScorePrintClass(Text_String(TXT_SEL_TARGET), 0, 180, _tanpal));
mouseshown = true;
Show_Mouse();
Expand Down
4 changes: 2 additions & 2 deletions tiberiandawn/ending.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ void Nod_Ending(void)
bool printedtext = false;
while (!done) {
if (!printedtext && !Is_Sample_Playing(kanefinl)) {
printedtext++;
printedtext = true;
Alloc_Object(new ScorePrintClass(Text_String(TXT_SEL_TARGET), 0, 180, _tanpal));
mouseshown = true;
Show_Mouse();
Expand All @@ -177,7 +177,7 @@ void Nod_Ending(void)
int mousex = Keyboard->MouseQX;
int mousey = Keyboard->MouseQY;
if (mousey >= 22 * factor && mousey <= 177 * factor) {
done++;
done = true;
if (mousex < 160 * factor && mousey < 100 * factor)
selection = 2;
if (mousex < 160 * factor && mousey >= 100 * factor)
Expand Down

0 comments on commit 122b474

Please sign in to comment.