remove FIXMEs in GameMP/Computer.cpp

and replace the corresponding conditions with more readable (but
equivalent) ones.
This commit is contained in:
Daniel Gibson 2016-04-26 17:54:57 +02:00
parent b64df456b6
commit 7e7ab3e70e

View File

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