1
0
Fork 0
mirror of https://github.com/k4zmu2a/SpaceCadetPinball.git synced 2024-11-22 08:50:18 +01:00

Compare commits

..

No commits in common. "1c1fbcb811338591703c51db526a23d8c70e5192" and "b40b54ce515167ae98e96c91d9b99dea9f798dc8" have entirely different histories.

10 changed files with 9 additions and 29 deletions

View file

@ -82,11 +82,7 @@ void THole::Collision(TBall* ball, vector_type* nextPosition, vector_type* direc
ball->Position.X = Circle.Center.X;
ball->Position.Y = Circle.Center.Y;
ball->Acceleration.Z = 0.0;
// Ramp hole has no delay in FT.
auto captureTime = pb::FullTiltMode ? 0 : 0.5f;
Timer = timer::set(captureTime, this, TimerExpired);
Timer = timer::set(0.5f, this, TimerExpired);
if (!PinballTable->TiltLockFlag)
{
loader::play_sound(HardHitSoundId);

View file

@ -153,7 +153,7 @@ void TTextBox::Display(const wchar_t* text, float time)
}
}
void TTextBox::Draw(bool redraw)
void TTextBox::Draw()
{
auto bmp = BgBmp;
if (bmp)
@ -172,12 +172,6 @@ void TTextBox::Draw(bool redraw)
bool display = false;
while (Message1)
{
if (redraw)
{
display = true;
break;
}
if (Message1->Time == -1.0f)
{
if (!Message1->NextMessage)
@ -189,8 +183,6 @@ void TTextBox::Draw(bool redraw)
}
else if (Message1->TimeLeft() >= -2.0f)
{
if (Timer > 0)
timer::kill(Timer);
Timer = timer::set(max(Message1->TimeLeft(), 0.25f), this, TimerExpired);
display = true;
break;

View file

@ -22,7 +22,7 @@ public:
int Message(int code, float value) override;
void Clear();
void Display(const wchar_t* text, float time);
void Draw(bool redraw = false);
void Draw();
static void TimerExpired(int timerId, void* tb);
};

View file

@ -2916,7 +2916,7 @@ void control::GameoverController(int code, TPinballComponent* caller)
if (missionMsg & 0x200)
{
int highscoreId = missionMsg % 5;
int highscoreId = missionMsg % 4;
int highScore = pb::highscore_table[highscoreId].Score;
auto nextHidhscoreId = highscoreId + 1;
if (highScore > 0)

View file

@ -377,7 +377,7 @@ void fullscrn::paint()
fillRect(WindowRect1.right, menuHeight + WindowRect1.bottom, 0, 0);
}
}
pb::paint();
render::paint();
fullscrn_flag1 = 0;
}

View file

@ -81,9 +81,8 @@ LanguageMenuEntry options::LanguageMenu[]
{L"Italiano", Languages::Italian},
{L"Magyar", Languages::Hungarian},
{L"Portugues do Brasil", Languages::BrazilianPortuguese},
{L"Čeština", Languages::Czech},
{L"Dansk", Languages::Danish},
{L"Suomi", Languages::Finnish},
{L"Čeština" , Languages::Czech},
{L"Dansk" , Languages::Danish},
};
void options::ReadOptions()

View file

@ -5,7 +5,7 @@
enum class Languages
{
English = MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US),
Russian = MAKELANGID(LANG_RUSSIAN, SUBLANG_RUSSIAN_RUSSIA),
Russian = MAKELANGID(LANG_RUSSIAN, SUBLANG_DEFAULT),
TraditionalChinese = MAKELANGID(LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL),
SimplifiedChinese = MAKELANGID(LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED),
Polish = MAKELANGID(LANG_POLISH, SUBLANG_POLISH_POLAND),
@ -17,7 +17,6 @@ enum class Languages
BrazilianPortuguese = MAKELANGID(LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN),
Czech = MAKELANGID(LANG_CZECH, SUBLANG_CZECH_CZECH_REPUBLIC),
Danish = MAKELANGID(LANG_DANISH, SUBLANG_DANISH_DENMARK),
Finnish = MAKELANGID(LANG_FINNISH, SUBLANG_FINNISH_FINLAND),
};
struct LanguageMenuEntry

View file

@ -135,12 +135,6 @@ void pb::firsttime_setup()
void pb::paint()
{
render::paint();
if (score::msg_fontp == nullptr)
{
// DrawText writes to screen directly, text gets overwritten by full vScreen blit.
pinball::InfoTextBox->Draw(true);
pinball::MissTextBox->Draw(true);
}
}
void pb::mode_change(int mode)

View file

@ -242,7 +242,7 @@
#define DLG_HIGHSCORES_EditName5 605
#define Menu1_AlternativeRender 601
#define Menu1_Language 700
#define Menu1_LanguageMax 714
#define Menu1_LanguageMax 713
// Next default values for new objects
//