mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 10:20:26 +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;
|
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);
|
PlaySound(m_soBackground, SOUND_LAVA_LAVABURN, SOF_3D|SOF_LOOP);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1373,7 +1373,7 @@ procedures:
|
||||||
autocall FallOnFloor() EReturn;
|
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);
|
PlaySound(m_soBackground, SOUND_LAVA_LAVABURN, SOF_3D|SOF_LOOP);
|
||||||
}
|
}
|
||||||
|
|
|
@ -177,7 +177,7 @@ static PIXaabbox2D GetMsgSliderSpace(void)
|
||||||
|
|
||||||
static PIXaabbox2D GetTextSliderBox(void)
|
static PIXaabbox2D GetTextSliderBox(void)
|
||||||
{
|
{
|
||||||
if (_iActiveMessage>=_acmMessages.Count()) {
|
if ((_iActiveMessage >= _acmMessages.Count()) || (_iActiveMessage < 0)) {
|
||||||
return PIXaabbox2D();
|
return PIXaabbox2D();
|
||||||
}
|
}
|
||||||
INDEX ctTextLines = _acmMessages[_iActiveMessage].cm_ctFormattedLines;
|
INDEX ctTextLines = _acmMessages[_iActiveMessage].cm_ctFormattedLines;
|
||||||
|
@ -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()) {
|
if ((_iActiveMessage >= _acmMessages.Count()) || (_iActiveMessage < 0)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_iActiveMessage--;
|
_iActiveMessage--;
|
||||||
|
@ -258,7 +258,7 @@ void PrevMessage(void)
|
||||||
|
|
||||||
void NextMessage(void)
|
void NextMessage(void)
|
||||||
{
|
{
|
||||||
if (_iActiveMessage >= _acmMessages.Count()) {
|
if ((_iActiveMessage >= _acmMessages.Count()) || (_iActiveMessage < 0)) {
|
||||||
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()) {
|
if ((_iActiveMessage >= _acmMessages.Count()) || (_iActiveMessage < 0)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// find text lines count
|
// find text lines count
|
||||||
|
@ -336,7 +336,7 @@ void MessageTextUpDn(INDEX ctLines)
|
||||||
// mark current message as read
|
// mark current message as read
|
||||||
void MarkCurrentRead(void)
|
void MarkCurrentRead(void)
|
||||||
{
|
{
|
||||||
if (_iActiveMessage>=_acmMessages.Count()) {
|
if ((_iActiveMessage >= _acmMessages.Count()) || (_iActiveMessage < 0)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// if running in background
|
// if running in background
|
||||||
|
|
Loading…
Reference in New Issue
Block a user