mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-18 17:14:13 +02:00
* Mission Timer at proper place
* Map view dimensions fixed
This commit is contained in:
@@ -89,14 +89,7 @@ void CreditClass::Graphic_Logic(bool forced)
|
||||
{
|
||||
BStart(BENCH_TABS);
|
||||
|
||||
int xx = SeenBuff.Get_Width() - (120 * RESFACTOR);
|
||||
|
||||
/*
|
||||
** Adjust the credits display to be above the sidebar for 640x400
|
||||
*/
|
||||
#ifdef WIN32
|
||||
xx += 80 * RESFACTOR;
|
||||
#endif
|
||||
int xx = SeenBuff.Get_Width() - (120 * RESFACTOR) + ( 80 * RESFACTOR );
|
||||
|
||||
/*
|
||||
** Play a sound effect when the money display changes, but only if a sound
|
||||
@@ -116,7 +109,8 @@ void CreditClass::Graphic_Logic(bool forced)
|
||||
TabClass::Draw_Credits_Tab();
|
||||
Fancy_Text_Print("%ld", xx, 0, &MetalScheme, TBLACK, TPF_METAL12 | TPF_CENTER | TPF_USE_GRAD_PAL, Current);
|
||||
|
||||
if (Scen.MissionTimer.Is_Active()) {
|
||||
if (Scen.MissionTimer.Is_Active())
|
||||
{
|
||||
long secs = Scen.MissionTimer / TICKS_PER_SECOND;
|
||||
long mins = secs / 60;
|
||||
long hours = mins / 60;
|
||||
@@ -141,10 +135,11 @@ void CreditClass::Graphic_Logic(bool forced)
|
||||
Map.FlasherTimer = 7;
|
||||
}
|
||||
|
||||
xx = SeenBuff.Get_Width() - (120 * RESFACTOR);
|
||||
if (hours) {
|
||||
Fancy_Text_Print(TXT_TIME_FORMAT_HOURS, 200 * RESFACTOR, 0, &MetalScheme, TBLACK, TPF_METAL12|TPF_CENTER|TPF_USE_GRAD_PAL, hours, mins, secs);
|
||||
Fancy_Text_Print(TXT_TIME_FORMAT_HOURS, xx, 0, &MetalScheme, TBLACK, TPF_METAL12|TPF_CENTER|TPF_USE_GRAD_PAL, hours, mins, secs);
|
||||
} else {
|
||||
Fancy_Text_Print(TXT_TIME_FORMAT_NO_HOURS, 200 * RESFACTOR, 0, &MetalScheme, TBLACK, TPF_METAL12|TPF_CENTER|TPF_USE_GRAD_PAL, mins, secs);
|
||||
Fancy_Text_Print(TXT_TIME_FORMAT_NO_HOURS, xx, 0, &MetalScheme, TBLACK, TPF_METAL12|TPF_CENTER|TPF_USE_GRAD_PAL, mins, secs);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user