1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-25 22:18:30 +02:00

De-duplicate titleupdatetextcol() in gamecompletelogic()

Originally this function was made because it needed to be exported to
gameinput(), but this piece of code is actually also used in
gamecompletelogic(). So it's good to de-duplicate it here, too.
This commit is contained in:
Misa 2020-11-07 14:46:49 -08:00 committed by Ethan Lee
parent bf29c48640
commit 65a5dbe3a3

View File

@ -145,15 +145,7 @@ void gamecompletelogic()
graphics.titlebg.scrolldir = 1;
graphics.updatetitlecolours();
graphics.col_tr = map.r - (help.glow / 4) - fRandom() * 4;
graphics.col_tg = map.g - (help.glow / 4) - fRandom() * 4;
graphics.col_tb = map.b - (help.glow / 4) - fRandom() * 4;
if (graphics.col_tr < 0) graphics.col_tr = 0;
if(graphics.col_tr>255) graphics.col_tr=255;
if (graphics.col_tg < 0) graphics.col_tg = 0;
if(graphics.col_tg>255) graphics.col_tg=255;
if (graphics.col_tb < 0) graphics.col_tb = 0;
if(graphics.col_tb>255) graphics.col_tb=255;
titleupdatetextcol();
game.creditposition--;
if (game.creditposition <= -Credits::creditmaxposition)