Add stplyrnum, move to st_stuff

This commit is contained in:
GenericHeroGuy committed 2024-02-21 22:27:17 +01:00
1 parent 2fb75f7739
commit 9362d5abd4
4 files changed
+7 -4

No files matched your search

-1
View File
@@ -33,7 +33,6 @@
boolean LUA_CallAction(const char *action, mobj_t *actor);
#endif
player_t *stplyr;
INT32 var1;
INT32 var2;
-3
View File
@@ -306,9 +306,6 @@ void P_FlashPal(player_t *pl, UINT16 type, UINT16 duration);
// P_ENEMY
//
// main player in game
extern player_t *stplyr; // for splitscreen correct palette changes and overlay
// Is there a better place for these?
extern INT32 var1;
extern INT32 var2;
+5
View File
@@ -150,6 +150,10 @@ static patch_t *hud_tv2;
static patch_t *envelope;
#endif
// current player for overlay drawing
player_t *stplyr;
UINT8 stplyrnum;
// SRB2kart
hudinfo_t hudinfo[NUMHUDITEMS] =
@@ -2223,6 +2227,7 @@ void ST_Drawer(void)
for (i = 0; i <= splitscreen; i++)
{
stplyr = &players[displayplayers[i]];
stplyrnum = i;
ST_overlayDrawer();
}
+2
View File
@@ -68,6 +68,8 @@ boolean ST_SameTeam(player_t *a, player_t *b);
extern boolean st_overlay; // sb overlay on or off when fullscreen
extern INT32 st_palette; // 0 is default, any others are special palettes.
extern player_t *stplyr; // for splitscreen correct palette changes and overlay
extern UINT8 stplyrnum;
extern lumpnum_t st_borderpatchnum;
// patches, also used in intermission