mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-31 05:20:51 +00:00
* Fix the fades mess, and have the title screen always have a smooth, non-checkered fade from blapck!
* Fix all the bugs with skin not being set properly or kept synchronised with the multiplayer setup in record attack. * Reduce the amount of flashing on the voting screen.
This commit is contained in:
parent
fa2aa98e04
commit
f49b12a705
7 changed files with 40 additions and 22 deletions
|
@ -296,15 +296,15 @@ static void D_Display(void)
|
||||||
{
|
{
|
||||||
// set for all later
|
// set for all later
|
||||||
wipedefindex = gamestate; // wipe_xxx_toblack
|
wipedefindex = gamestate; // wipe_xxx_toblack
|
||||||
if (gamestate == GS_INTERMISSION)
|
if (gamestate == GS_TITLESCREEN && wipegamestate != GS_INTRO)
|
||||||
|
wipedefindex = wipe_multinter_toblack;
|
||||||
|
else if (gamestate == GS_INTERMISSION)
|
||||||
{
|
{
|
||||||
if (intertype == int_spec) // Special Stage
|
if (intertype == int_spec) // Special Stage
|
||||||
wipedefindex = wipe_specinter_toblack;
|
wipedefindex = wipe_specinter_toblack;
|
||||||
else //if (intertype != int_coop) // Multiplayer
|
else //if (intertype != int_coop) // Multiplayer
|
||||||
wipedefindex = wipe_multinter_toblack;
|
wipedefindex = wipe_multinter_toblack;
|
||||||
}
|
}
|
||||||
else if (gamestate == GS_VOTING)
|
|
||||||
wipedefindex = wipe_multinter_toblack;
|
|
||||||
|
|
||||||
if (rendermode != render_none)
|
if (rendermode != render_none)
|
||||||
{
|
{
|
||||||
|
@ -385,6 +385,8 @@ static void D_Display(void)
|
||||||
|
|
||||||
case GS_TITLESCREEN:
|
case GS_TITLESCREEN:
|
||||||
F_TitleScreenDrawer();
|
F_TitleScreenDrawer();
|
||||||
|
if (wipe)
|
||||||
|
wipedefindex = wipe_titlescreen_toblack;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GS_WAITINGPLAYERS:
|
case GS_WAITINGPLAYERS:
|
||||||
|
|
|
@ -2241,6 +2241,9 @@ static void Got_Mapcmd(UINT8 **cp, INT32 playernum)
|
||||||
emeralds = 0;
|
emeralds = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (modeattacking) // i remember moving this here in internal fixed a heisenbug so
|
||||||
|
SetPlayerSkinByNum(0, cv_chooseskin.value-1);
|
||||||
|
|
||||||
#ifdef HAVE_BLUA
|
#ifdef HAVE_BLUA
|
||||||
LUAh_MapChange();
|
LUAh_MapChange();
|
||||||
#endif
|
#endif
|
||||||
|
@ -2252,15 +2255,6 @@ static void Got_Mapcmd(UINT8 **cp, INT32 playernum)
|
||||||
if (timingdemo)
|
if (timingdemo)
|
||||||
G_DoneLevelLoad();
|
G_DoneLevelLoad();
|
||||||
|
|
||||||
if (modeattacking)
|
|
||||||
{
|
|
||||||
SetPlayerSkinByNum(0, cv_chooseskin.value-1);
|
|
||||||
players[0].skincolor = cv_playercolor.value; // srb2kart
|
|
||||||
|
|
||||||
// a copy of color
|
|
||||||
if (players[0].mo)
|
|
||||||
players[0].mo->color = players[0].skincolor;
|
|
||||||
}
|
|
||||||
if (metalrecording)
|
if (metalrecording)
|
||||||
G_BeginMetal();
|
G_BeginMetal();
|
||||||
if (demorecording) // Okay, level loaded, character spawned and skinned,
|
if (demorecording) // Okay, level loaded, character spawned and skinned,
|
||||||
|
|
|
@ -3182,6 +3182,14 @@ static void readwipes(MYFILE *f)
|
||||||
else if (fastcmp(pword, "FINAL"))
|
else if (fastcmp(pword, "FINAL"))
|
||||||
wipeoffset = wipe_specinter_final;
|
wipeoffset = wipe_specinter_final;
|
||||||
}
|
}
|
||||||
|
else if (fastncmp(word, "VOTING_", 10))
|
||||||
|
{
|
||||||
|
pword = word + 10;
|
||||||
|
if (fastcmp(pword, "TOBLACK"))
|
||||||
|
wipeoffset = wipe_specinter_toblack;
|
||||||
|
else if (fastcmp(pword, "FINAL"))
|
||||||
|
wipeoffset = wipe_specinter_final;
|
||||||
|
}
|
||||||
else if (fastncmp(word, "MULTINTER_", 10))
|
else if (fastncmp(word, "MULTINTER_", 10))
|
||||||
{
|
{
|
||||||
pword = word + 10;
|
pword = word + 10;
|
||||||
|
|
|
@ -82,6 +82,7 @@ enum
|
||||||
|
|
||||||
wipe_level_toblack,
|
wipe_level_toblack,
|
||||||
wipe_intermission_toblack,
|
wipe_intermission_toblack,
|
||||||
|
wipe_voting_toblack,
|
||||||
wipe_continuing_toblack,
|
wipe_continuing_toblack,
|
||||||
wipe_titlescreen_toblack,
|
wipe_titlescreen_toblack,
|
||||||
wipe_timeattack_toblack,
|
wipe_timeattack_toblack,
|
||||||
|
@ -98,6 +99,7 @@ enum
|
||||||
|
|
||||||
wipe_level_final,
|
wipe_level_final,
|
||||||
wipe_intermission_final,
|
wipe_intermission_final,
|
||||||
|
wipe_voting_final,
|
||||||
wipe_continuing_final,
|
wipe_continuing_final,
|
||||||
wipe_titlescreen_final,
|
wipe_titlescreen_final,
|
||||||
wipe_timeattack_final,
|
wipe_timeattack_final,
|
||||||
|
@ -111,9 +113,10 @@ enum
|
||||||
wipe_specinter_final,
|
wipe_specinter_final,
|
||||||
wipe_multinter_final,
|
wipe_multinter_final,
|
||||||
|
|
||||||
NUMWIPEDEFS
|
NUMWIPEDEFS,
|
||||||
|
WIPEFINALSHIFT = wipe_level_final - wipe_level_toblack
|
||||||
};
|
};
|
||||||
#define WIPEFINALSHIFT 13
|
|
||||||
extern UINT8 wipedefs[NUMWIPEDEFS];
|
extern UINT8 wipedefs[NUMWIPEDEFS];
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -47,6 +47,7 @@ UINT8 wipedefs[NUMWIPEDEFS] = {
|
||||||
|
|
||||||
0, // wipe_level_toblack
|
0, // wipe_level_toblack
|
||||||
UINT8_MAX, // wipe_intermission_toblack
|
UINT8_MAX, // wipe_intermission_toblack
|
||||||
|
0, // wipe_voting_toblack,
|
||||||
UINT8_MAX, // wipe_continuing_toblack
|
UINT8_MAX, // wipe_continuing_toblack
|
||||||
3, // wipe_titlescreen_toblack
|
3, // wipe_titlescreen_toblack
|
||||||
0, // wipe_timeattack_toblack
|
0, // wipe_timeattack_toblack
|
||||||
|
@ -62,6 +63,7 @@ UINT8 wipedefs[NUMWIPEDEFS] = {
|
||||||
|
|
||||||
0, // wipe_level_final
|
0, // wipe_level_final
|
||||||
0, // wipe_intermission_final
|
0, // wipe_intermission_final
|
||||||
|
0, // wipe_voting_final
|
||||||
0, // wipe_continuing_final
|
0, // wipe_continuing_final
|
||||||
3, // wipe_titlescreen_final
|
3, // wipe_titlescreen_final
|
||||||
0, // wipe_timeattack_final
|
0, // wipe_timeattack_final
|
||||||
|
|
23
src/m_menu.c
23
src/m_menu.c
|
@ -241,6 +241,7 @@ menu_t MISC_ScrambleTeamDef, MISC_ChangeTeamDef;
|
||||||
// Single Player
|
// Single Player
|
||||||
//static void M_LoadGame(INT32 choice);
|
//static void M_LoadGame(INT32 choice);
|
||||||
static void M_TimeAttack(INT32 choice);
|
static void M_TimeAttack(INT32 choice);
|
||||||
|
static boolean M_QuitTimeAttackMenu(void);
|
||||||
//static void M_NightsAttack(INT32 choice);
|
//static void M_NightsAttack(INT32 choice);
|
||||||
static void M_Statistics(INT32 choice);
|
static void M_Statistics(INT32 choice);
|
||||||
static void M_HandleStaffReplay(INT32 choice);
|
static void M_HandleStaffReplay(INT32 choice);
|
||||||
|
@ -1684,7 +1685,7 @@ static menu_t SP_TimeAttackDef =
|
||||||
M_DrawTimeAttackMenu,
|
M_DrawTimeAttackMenu,
|
||||||
34, 40,
|
34, 40,
|
||||||
0,
|
0,
|
||||||
NULL
|
M_QuitTimeAttackMenu
|
||||||
};
|
};
|
||||||
static menu_t SP_ReplayDef =
|
static menu_t SP_ReplayDef =
|
||||||
{
|
{
|
||||||
|
@ -3784,20 +3785,21 @@ static void M_PatchSkinNameTable(void)
|
||||||
if (skins[j].name[0] != '\0')
|
if (skins[j].name[0] != '\0')
|
||||||
{
|
{
|
||||||
skins_cons_t[j].strvalue = skins[j].name;
|
skins_cons_t[j].strvalue = skins[j].name;
|
||||||
skins_cons_t[j].value = j+1;
|
skins_cons_t[j].value = j;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
skins_cons_t[j].strvalue = NULL;
|
skins_cons_t[j].strvalue = NULL;
|
||||||
skins_cons_t[j].value = 0;
|
skins_cons_t[j].value = 0;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CV_SetValue(&cv_chooseskin, cv_chooseskin.value); // This causes crash sometimes?!
|
j = R_SkinAvailable(cv_skin.string);
|
||||||
|
if (j == -1)
|
||||||
|
j = 0;
|
||||||
|
|
||||||
CV_SetValue(&cv_chooseskin, 1);
|
CV_SetValue(&cv_chooseskin, j+1); // This causes crash sometimes?!
|
||||||
CV_AddValue(&cv_chooseskin, -1);
|
|
||||||
CV_AddValue(&cv_chooseskin, 1);
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -3831,7 +3833,7 @@ boolean M_CanShowLevelInList(INT32 mapnum, INT32 gt)
|
||||||
{
|
{
|
||||||
case LLM_CREATESERVER:
|
case LLM_CREATESERVER:
|
||||||
// Should the map be hidden?
|
// Should the map be hidden?
|
||||||
if (mapheaderinfo[mapnum]->menuflags & LF2_HIDEINMENU)
|
if (mapheaderinfo[mapnum]->menuflags & LF2_HIDEINMENU && mapnum+1 != gamemap)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (M_MapLocked(mapnum+1))
|
if (M_MapLocked(mapnum+1))
|
||||||
|
@ -5848,6 +5850,13 @@ static void M_TimeAttack(INT32 choice)
|
||||||
S_ChangeMusicInternal("racent", true);
|
S_ChangeMusicInternal("racent", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static boolean M_QuitTimeAttackMenu(void)
|
||||||
|
{
|
||||||
|
// you know what? always putting these in the buffer won't hurt anything.
|
||||||
|
COM_BufAddText(va("skin \"%s\"\n", cv_chooseskin.string));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
// Drawing function for Nights Attack
|
// Drawing function for Nights Attack
|
||||||
/*void M_DrawNightsAttackMenu(void)
|
/*void M_DrawNightsAttackMenu(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -2253,7 +2253,7 @@ void Y_VoteDrawer(void)
|
||||||
if (!timer && i == voteclient.ranim)
|
if (!timer && i == voteclient.ranim)
|
||||||
{
|
{
|
||||||
V_DrawScaledPatch(x-18, y+9, V_SNAPTOLEFT, cursor);
|
V_DrawScaledPatch(x-18, y+9, V_SNAPTOLEFT, cursor);
|
||||||
if (!(votetic % 4))
|
if (voteendtic != -1 && !(votetic % 4))
|
||||||
V_DrawFill(x-1, y-1, 42, 27, 120|V_SNAPTOLEFT);
|
V_DrawFill(x-1, y-1, 42, 27, 120|V_SNAPTOLEFT);
|
||||||
else
|
else
|
||||||
V_DrawFill(x-1, y-1, 42, 27, levelinfo[votes[i]].gtc|V_SNAPTOLEFT);
|
V_DrawFill(x-1, y-1, 42, 27, levelinfo[votes[i]].gtc|V_SNAPTOLEFT);
|
||||||
|
|
Loading…
Reference in a new issue