1
0
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:
Mathieu Schroeter 2017-10-23 17:32:18 +02:00
parent 6044ace3c3
commit 6da7be9e78
3 changed files with 15 additions and 12 deletions

View File

@ -3394,7 +3394,7 @@ CEvent::MovieToStart ()
{
if (StartMovie (m_movieToStart))
{
movie = true;
movie = true;
m_phase = m_phaseAfterMovie; // prochaine phase normale
}
else
@ -5122,26 +5122,26 @@ CEvent::TreatEventBase (const SDL_Event & event)
}
case 4: // quick ?
{
m_bSpeed = !m_bSpeed;
bEnable = m_bSpeed;
m_bSpeed = !m_bSpeed;
bEnable = m_bSpeed;
break;
}
case 5: // helpme ?
{
m_bHelp = !m_bHelp;
bEnable = m_bHelp;
m_bHelp = !m_bHelp;
bEnable = m_bHelp;
break;
}
case 6: // invincible ?
{
m_pDecor->SetInvincible (!m_pDecor->GetInvincible ());
bEnable = m_pDecor->GetInvincible ();
bEnable = m_pDecor->GetInvincible ();
break;
}
case 7: // superblupi ?
{
m_pDecor->SetSuper (!m_pDecor->GetSuper ());
bEnable = m_pDecor->GetSuper ();
bEnable = m_pDecor->GetSuper ();
break;
}
case 8: // construire ?

View File

@ -82,8 +82,9 @@ enum class Language {
fr = 2,
de = 3,
it = 4,
// Left some space for Korean and Hebrew as I think original translations should be first, see issue #23
pl = 7,
// Left some space for Korean and Hebrew as I think original translations
// should be first, see issue #23
pl = 7,
};
class CEvent

View File

@ -62,11 +62,13 @@ GetOffset (const char *& c)
if (static_cast<unsigned char> (*c) == 0xC5)
c++;
if (GetLocale() != "pl")
if (GetLocale () != "pl")
{
// 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
// TODO: In the future, this ugly hack should be replaced with proper UTF-8 parsing
// This is required because we check only last byte of UTF-8 and some
// 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)
if ((unsigned char) *c == table_accents[i])
return 15 + i;