mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Cosmetic: apply clang-format
This commit is contained in:
parent
6044ace3c3
commit
6da7be9e78
@ -3394,7 +3394,7 @@ CEvent::MovieToStart ()
|
|||||||
{
|
{
|
||||||
if (StartMovie (m_movieToStart))
|
if (StartMovie (m_movieToStart))
|
||||||
{
|
{
|
||||||
movie = true;
|
movie = true;
|
||||||
m_phase = m_phaseAfterMovie; // prochaine phase normale
|
m_phase = m_phaseAfterMovie; // prochaine phase normale
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -5122,26 +5122,26 @@ CEvent::TreatEventBase (const SDL_Event & event)
|
|||||||
}
|
}
|
||||||
case 4: // quick ?
|
case 4: // quick ?
|
||||||
{
|
{
|
||||||
m_bSpeed = !m_bSpeed;
|
m_bSpeed = !m_bSpeed;
|
||||||
bEnable = m_bSpeed;
|
bEnable = m_bSpeed;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 5: // helpme ?
|
case 5: // helpme ?
|
||||||
{
|
{
|
||||||
m_bHelp = !m_bHelp;
|
m_bHelp = !m_bHelp;
|
||||||
bEnable = m_bHelp;
|
bEnable = m_bHelp;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 6: // invincible ?
|
case 6: // invincible ?
|
||||||
{
|
{
|
||||||
m_pDecor->SetInvincible (!m_pDecor->GetInvincible ());
|
m_pDecor->SetInvincible (!m_pDecor->GetInvincible ());
|
||||||
bEnable = m_pDecor->GetInvincible ();
|
bEnable = m_pDecor->GetInvincible ();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 7: // superblupi ?
|
case 7: // superblupi ?
|
||||||
{
|
{
|
||||||
m_pDecor->SetSuper (!m_pDecor->GetSuper ());
|
m_pDecor->SetSuper (!m_pDecor->GetSuper ());
|
||||||
bEnable = m_pDecor->GetSuper ();
|
bEnable = m_pDecor->GetSuper ();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 8: // construire ?
|
case 8: // construire ?
|
||||||
|
@ -82,8 +82,9 @@ enum class Language {
|
|||||||
fr = 2,
|
fr = 2,
|
||||||
de = 3,
|
de = 3,
|
||||||
it = 4,
|
it = 4,
|
||||||
// Left some space for Korean and Hebrew as I think original translations should be first, see issue #23
|
// Left some space for Korean and Hebrew as I think original translations
|
||||||
pl = 7,
|
// should be first, see issue #23
|
||||||
|
pl = 7,
|
||||||
};
|
};
|
||||||
|
|
||||||
class CEvent
|
class CEvent
|
||||||
|
@ -62,11 +62,13 @@ GetOffset (const char *& c)
|
|||||||
if (static_cast<unsigned char> (*c) == 0xC5)
|
if (static_cast<unsigned char> (*c) == 0xC5)
|
||||||
c++;
|
c++;
|
||||||
|
|
||||||
if (GetLocale() != "pl")
|
if (GetLocale () != "pl")
|
||||||
{
|
{
|
||||||
// Do not use the 'standard' accents table with Polish locale
|
// Do not use the 'standard' accents table with Polish locale
|
||||||
// This is required because we check only last byte of UTF-8 and some characters overlap
|
// This is required because we check only last byte of UTF-8 and some
|
||||||
// TODO: In the future, this ugly hack should be replaced with proper UTF-8 parsing
|
// characters overlap
|
||||||
|
// TODO: In the future, this ugly hack should be replaced with proper UTF-8
|
||||||
|
// parsing
|
||||||
for (unsigned int i = 0; i < countof (table_accents); ++i)
|
for (unsigned int i = 0; i < countof (table_accents); ++i)
|
||||||
if ((unsigned char) *c == table_accents[i])
|
if ((unsigned char) *c == table_accents[i])
|
||||||
return 15 + i;
|
return 15 + i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user