Skip to content

Commit ce93907

Browse files
committed
make brain damage less agressive
1 parent 0531801 commit ce93907

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

Source/Managers/FrameMan.cpp

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,39 @@ void FrameMan::DrawScreenFlash(int playerScreen, BITMAP* playerGUIBitmap) {
10401040
if (m_FlashedLastFrame[playerScreen]) {
10411041
m_FlashedLastFrame[playerScreen] = false;
10421042
} else {
1043-
rectfill(playerGUIBitmap, 0, 0, playerGUIBitmap->w, playerGUIBitmap->h, m_FlashScreenColor[playerScreen]);
1043+
rlZDepth(c_GuiDepth);
1044+
rlBegin(RL_QUADS);
1045+
1046+
rlColor4ub(m_FlashScreenColor[playerScreen], 0, 0, 50);
1047+
rlVertex2f(playerGUIBitmap->w * .25f, playerGUIBitmap->h * .25f);
1048+
rlVertex2f(playerGUIBitmap->w - playerGUIBitmap->w * .25f, playerGUIBitmap->h *0.25f);
1049+
rlColor4ub(m_FlashScreenColor[playerScreen], 0, 0, 255);
1050+
rlVertex2f(playerGUIBitmap->w, 0.0f);
1051+
rlVertex2f(0.0f, 0.0f);
1052+
1053+
rlColor4ub(m_FlashScreenColor[playerScreen], 0, 0, 50);
1054+
rlVertex2f(playerGUIBitmap->w * .25f, playerGUIBitmap->h - playerGUIBitmap->h * .25f);
1055+
rlVertex2f(playerGUIBitmap->w * .25f, playerGUIBitmap->h *0.25f);
1056+
rlColor4ub(m_FlashScreenColor[playerScreen], 0, 0, 255);
1057+
rlVertex2f(0.0f, 0.0f);
1058+
rlVertex2f(0.0f, playerGUIBitmap->h);
1059+
1060+
rlColor4ub(m_FlashScreenColor[playerScreen], 0, 0, 50);
1061+
rlVertex2f(playerGUIBitmap->w - playerGUIBitmap->w * .25f, playerGUIBitmap->h - playerGUIBitmap->h * .25f);
1062+
rlVertex2f(playerGUIBitmap->w * .25f, playerGUIBitmap->h - playerGUIBitmap->h * .25f);
1063+
rlColor4ub(m_FlashScreenColor[playerScreen], 0, 0, 255);
1064+
rlVertex2f(0.0f, playerGUIBitmap->h);
1065+
rlVertex2f(playerGUIBitmap->w, playerGUIBitmap->h);
1066+
1067+
rlColor4ub(m_FlashScreenColor[playerScreen], 0, 0, 50);
1068+
rlVertex2f(playerGUIBitmap->w - playerGUIBitmap->w * .25f, playerGUIBitmap->h * .25f);
1069+
rlVertex2f(playerGUIBitmap->w - playerGUIBitmap->w * .25f, playerGUIBitmap->h - playerGUIBitmap->h * .25f);
1070+
rlColor4ub(m_FlashScreenColor[playerScreen], 0, 0, 255);
1071+
rlVertex2f(playerGUIBitmap->w, playerGUIBitmap->h);
1072+
rlVertex2f(playerGUIBitmap->w, 0.0f);
1073+
1074+
rlEnd();
1075+
rlZDepth(c_DefaultDrawDepth);
10441076
m_FlashedLastFrame[playerScreen] = true;
10451077
}
10461078
}

0 commit comments

Comments
 (0)