Skip to content

Commit

Permalink
remove FIXMEs in GameMP/Computer.cpp
Browse files Browse the repository at this point in the history
and replace the corresponding conditions with more readable (but
equivalent) ones.
  • Loading branch information
DanielGibson committed Apr 26, 2016
1 parent f285b03 commit c968870
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/GameMP/Computer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ void LastUnreadMessage(void)
// go to next/previous message
void PrevMessage(void)
{
if (_iActiveMessage < _acmMessages.Count()==0) { // FIXME: DG: what is this about?
if (_iActiveMessage >= _acmMessages.Count()) {
return;
}
_iActiveMessage--;
Expand All @@ -258,7 +258,7 @@ void PrevMessage(void)

void NextMessage(void)
{
if (_iActiveMessage < _acmMessages.Count()==0) { // FIXME: DG: what is this about?
if (_iActiveMessage >= _acmMessages.Count()) {
return;
}
_iActiveMessage++;
Expand Down Expand Up @@ -305,7 +305,7 @@ void MessageTextUp(INDEX ctLines)
void MessageTextDn(INDEX ctLines)
{
// if no message do nothing
if (_iActiveMessage < _acmMessages.Count()==0) { // FIXME: DG: what is this about?
if (_iActiveMessage >= _acmMessages.Count()) {
return;
}
// find text lines count
Expand Down

0 comments on commit c968870

Please sign in to comment.