mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user