Update vote background if hud.setVoteBackground was called on vote screen

This commit is contained in:
indev committed 2025-09-05 17:34:30 +03:00
1 parent 85cac497ea
commit cd7ce5698c
3 files changed
+6 -1

No files matched your search

+4
View File
@@ -1278,6 +1278,10 @@ static int lib_hudsetvotebackground(lua_State *L)
strncpy(VoteScreen.luaPrefix, prefix, 4);
strupr(VoteScreen.luaPrefix);
// Update background if we're already on vote screen
if (gamestate == GS_VOTING)
Y_VoteScreenCheck();
return 0;
}
+1 -1
View File
@@ -820,7 +820,7 @@ static void Y_FollowIntermission(void)
//
// Y_VoteScreenCheck
//
static void Y_VoteScreenCheck(void)
void Y_VoteScreenCheck(void)
{
strcpy(VoteScreen.Prefix, "INTS");
+1
View File
@@ -21,6 +21,7 @@ void Y_VoteTicker(void);
void Y_StartVote(void);
void Y_EndVote(void);
void Y_SetupVoteFinish(SINT8 pick, SINT8 level);
void Y_VoteScreenCheck(void);
typedef struct
{