mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2024-11-22 17:00:18 +01:00
Compare commits
No commits in common. "1c1fbcb811338591703c51db526a23d8c70e5192" and "b40b54ce515167ae98e96c91d9b99dea9f798dc8" have entirely different histories.
1c1fbcb811
...
b40b54ce51
10 changed files with 9 additions and 29 deletions
Binary file not shown.
|
@ -82,11 +82,7 @@ void THole::Collision(TBall* ball, vector_type* nextPosition, vector_type* direc
|
||||||
ball->Position.X = Circle.Center.X;
|
ball->Position.X = Circle.Center.X;
|
||||||
ball->Position.Y = Circle.Center.Y;
|
ball->Position.Y = Circle.Center.Y;
|
||||||
ball->Acceleration.Z = 0.0;
|
ball->Acceleration.Z = 0.0;
|
||||||
|
Timer = timer::set(0.5f, this, TimerExpired);
|
||||||
// Ramp hole has no delay in FT.
|
|
||||||
auto captureTime = pb::FullTiltMode ? 0 : 0.5f;
|
|
||||||
Timer = timer::set(captureTime, this, TimerExpired);
|
|
||||||
|
|
||||||
if (!PinballTable->TiltLockFlag)
|
if (!PinballTable->TiltLockFlag)
|
||||||
{
|
{
|
||||||
loader::play_sound(HardHitSoundId);
|
loader::play_sound(HardHitSoundId);
|
||||||
|
|
|
@ -153,7 +153,7 @@ void TTextBox::Display(const wchar_t* text, float time)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TTextBox::Draw(bool redraw)
|
void TTextBox::Draw()
|
||||||
{
|
{
|
||||||
auto bmp = BgBmp;
|
auto bmp = BgBmp;
|
||||||
if (bmp)
|
if (bmp)
|
||||||
|
@ -172,12 +172,6 @@ void TTextBox::Draw(bool redraw)
|
||||||
bool display = false;
|
bool display = false;
|
||||||
while (Message1)
|
while (Message1)
|
||||||
{
|
{
|
||||||
if (redraw)
|
|
||||||
{
|
|
||||||
display = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Message1->Time == -1.0f)
|
if (Message1->Time == -1.0f)
|
||||||
{
|
{
|
||||||
if (!Message1->NextMessage)
|
if (!Message1->NextMessage)
|
||||||
|
@ -189,8 +183,6 @@ void TTextBox::Draw(bool redraw)
|
||||||
}
|
}
|
||||||
else if (Message1->TimeLeft() >= -2.0f)
|
else if (Message1->TimeLeft() >= -2.0f)
|
||||||
{
|
{
|
||||||
if (Timer > 0)
|
|
||||||
timer::kill(Timer);
|
|
||||||
Timer = timer::set(max(Message1->TimeLeft(), 0.25f), this, TimerExpired);
|
Timer = timer::set(max(Message1->TimeLeft(), 0.25f), this, TimerExpired);
|
||||||
display = true;
|
display = true;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -22,7 +22,7 @@ public:
|
||||||
int Message(int code, float value) override;
|
int Message(int code, float value) override;
|
||||||
void Clear();
|
void Clear();
|
||||||
void Display(const wchar_t* text, float time);
|
void Display(const wchar_t* text, float time);
|
||||||
void Draw(bool redraw = false);
|
void Draw();
|
||||||
|
|
||||||
static void TimerExpired(int timerId, void* tb);
|
static void TimerExpired(int timerId, void* tb);
|
||||||
};
|
};
|
||||||
|
|
|
@ -2916,7 +2916,7 @@ void control::GameoverController(int code, TPinballComponent* caller)
|
||||||
|
|
||||||
if (missionMsg & 0x200)
|
if (missionMsg & 0x200)
|
||||||
{
|
{
|
||||||
int highscoreId = missionMsg % 5;
|
int highscoreId = missionMsg % 4;
|
||||||
int highScore = pb::highscore_table[highscoreId].Score;
|
int highScore = pb::highscore_table[highscoreId].Score;
|
||||||
auto nextHidhscoreId = highscoreId + 1;
|
auto nextHidhscoreId = highscoreId + 1;
|
||||||
if (highScore > 0)
|
if (highScore > 0)
|
||||||
|
|
|
@ -377,7 +377,7 @@ void fullscrn::paint()
|
||||||
fillRect(WindowRect1.right, menuHeight + WindowRect1.bottom, 0, 0);
|
fillRect(WindowRect1.right, menuHeight + WindowRect1.bottom, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pb::paint();
|
render::paint();
|
||||||
fullscrn_flag1 = 0;
|
fullscrn_flag1 = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -83,7 +83,6 @@ LanguageMenuEntry options::LanguageMenu[]
|
||||||
{L"Portugues do Brasil", Languages::BrazilianPortuguese},
|
{L"Portugues do Brasil", Languages::BrazilianPortuguese},
|
||||||
{L"Čeština" , Languages::Czech},
|
{L"Čeština" , Languages::Czech},
|
||||||
{L"Dansk" , Languages::Danish},
|
{L"Dansk" , Languages::Danish},
|
||||||
{L"Suomi", Languages::Finnish},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void options::ReadOptions()
|
void options::ReadOptions()
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
enum class Languages
|
enum class Languages
|
||||||
{
|
{
|
||||||
English = MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US),
|
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),
|
TraditionalChinese = MAKELANGID(LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL),
|
||||||
SimplifiedChinese = MAKELANGID(LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED),
|
SimplifiedChinese = MAKELANGID(LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED),
|
||||||
Polish = MAKELANGID(LANG_POLISH, SUBLANG_POLISH_POLAND),
|
Polish = MAKELANGID(LANG_POLISH, SUBLANG_POLISH_POLAND),
|
||||||
|
@ -17,7 +17,6 @@ enum class Languages
|
||||||
BrazilianPortuguese = MAKELANGID(LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN),
|
BrazilianPortuguese = MAKELANGID(LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN),
|
||||||
Czech = MAKELANGID(LANG_CZECH, SUBLANG_CZECH_CZECH_REPUBLIC),
|
Czech = MAKELANGID(LANG_CZECH, SUBLANG_CZECH_CZECH_REPUBLIC),
|
||||||
Danish = MAKELANGID(LANG_DANISH, SUBLANG_DANISH_DENMARK),
|
Danish = MAKELANGID(LANG_DANISH, SUBLANG_DANISH_DENMARK),
|
||||||
Finnish = MAKELANGID(LANG_FINNISH, SUBLANG_FINNISH_FINLAND),
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct LanguageMenuEntry
|
struct LanguageMenuEntry
|
||||||
|
|
|
@ -135,12 +135,6 @@ void pb::firsttime_setup()
|
||||||
void pb::paint()
|
void pb::paint()
|
||||||
{
|
{
|
||||||
render::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)
|
void pb::mode_change(int mode)
|
||||||
|
|
|
@ -242,7 +242,7 @@
|
||||||
#define DLG_HIGHSCORES_EditName5 605
|
#define DLG_HIGHSCORES_EditName5 605
|
||||||
#define Menu1_AlternativeRender 601
|
#define Menu1_AlternativeRender 601
|
||||||
#define Menu1_Language 700
|
#define Menu1_Language 700
|
||||||
#define Menu1_LanguageMax 714
|
#define Menu1_LanguageMax 713
|
||||||
|
|
||||||
// Next default values for new objects
|
// Next default values for new objects
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue