mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-12-25 15:14:51 +01:00
Elemental.es/Computer.cpp changes according to @SLAwww's suggestions
This commit is contained in:
parent
7e7ab3e70e
commit
7b470d30ab
|
@ -1324,7 +1324,7 @@ procedures:
|
|||
autocall FallOnFloor() EReturn;
|
||||
}
|
||||
|
||||
if (m_EecChar==ELC_LARGE || (m_EecChar==ELC_BIG && m_EetType==ELT_LAVA))
|
||||
if ((m_EecChar==ELC_LARGE || m_EecChar==ELC_BIG) && m_EetType==ELT_LAVA)
|
||||
{
|
||||
PlaySound(m_soBackground, SOUND_LAVA_LAVABURN, SOF_3D|SOF_LOOP);
|
||||
}
|
||||
|
|
|
@ -1373,7 +1373,7 @@ procedures:
|
|||
autocall FallOnFloor() EReturn;
|
||||
}
|
||||
|
||||
if (m_EecChar==ELC_LARGE || (m_EecChar==ELC_BIG && m_EetType==ELT_LAVA))
|
||||
if ((m_EecChar==ELC_LARGE || m_EecChar==ELC_BIG) && m_EetType==ELT_LAVA)
|
||||
{
|
||||
PlaySound(m_soBackground, SOUND_LAVA_LAVABURN, SOF_3D|SOF_LOOP);
|
||||
}
|
||||
|
|
|
@ -177,7 +177,7 @@ static PIXaabbox2D GetMsgSliderSpace(void)
|
|||
|
||||
static PIXaabbox2D GetTextSliderBox(void)
|
||||
{
|
||||
if (_iActiveMessage>=_acmMessages.Count()) {
|
||||
if ((_iActiveMessage >= _acmMessages.Count()) || (_iActiveMessage < 0)) {
|
||||
return PIXaabbox2D();
|
||||
}
|
||||
INDEX ctTextLines = _acmMessages[_iActiveMessage].cm_ctFormattedLines;
|
||||
|
@ -246,7 +246,7 @@ void LastUnreadMessage(void)
|
|||
// go to next/previous message
|
||||
void PrevMessage(void)
|
||||
{
|
||||
if (_iActiveMessage >= _acmMessages.Count()) {
|
||||
if ((_iActiveMessage >= _acmMessages.Count()) || (_iActiveMessage < 0)) {
|
||||
return;
|
||||
}
|
||||
_iActiveMessage--;
|
||||
|
@ -258,7 +258,7 @@ void PrevMessage(void)
|
|||
|
||||
void NextMessage(void)
|
||||
{
|
||||
if (_iActiveMessage >= _acmMessages.Count()) {
|
||||
if ((_iActiveMessage >= _acmMessages.Count()) || (_iActiveMessage < 0)) {
|
||||
return;
|
||||
}
|
||||
_iActiveMessage++;
|
||||
|
@ -305,7 +305,7 @@ void MessageTextUp(INDEX ctLines)
|
|||
void MessageTextDn(INDEX ctLines)
|
||||
{
|
||||
// if no message do nothing
|
||||
if (_iActiveMessage >= _acmMessages.Count()) {
|
||||
if ((_iActiveMessage >= _acmMessages.Count()) || (_iActiveMessage < 0)) {
|
||||
return;
|
||||
}
|
||||
// find text lines count
|
||||
|
@ -336,7 +336,7 @@ void MessageTextUpDn(INDEX ctLines)
|
|||
// mark current message as read
|
||||
void MarkCurrentRead(void)
|
||||
{
|
||||
if (_iActiveMessage>=_acmMessages.Count()) {
|
||||
if ((_iActiveMessage >= _acmMessages.Count()) || (_iActiveMessage < 0)) {
|
||||
return;
|
||||
}
|
||||
// if running in background
|
||||
|
|
Loading…
Reference in New Issue
Block a user