mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 18:30:27 +01:00
remove FIXMEs in GameMP/Computer.cpp
and replace the corresponding conditions with more readable (but equivalent) ones.
This commit is contained in:
parent
b64df456b6
commit
7e7ab3e70e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user