mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-11-04 18:29:41 +01: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:
parent
bf29c48640
commit
65a5dbe3a3
1 changed files with 1 additions and 9 deletions
|
@ -145,15 +145,7 @@ void gamecompletelogic()
|
||||||
graphics.titlebg.scrolldir = 1;
|
graphics.titlebg.scrolldir = 1;
|
||||||
graphics.updatetitlecolours();
|
graphics.updatetitlecolours();
|
||||||
|
|
||||||
graphics.col_tr = map.r - (help.glow / 4) - fRandom() * 4;
|
titleupdatetextcol();
|
||||||
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;
|
|
||||||
|
|
||||||
game.creditposition--;
|
game.creditposition--;
|
||||||
if (game.creditposition <= -Credits::creditmaxposition)
|
if (game.creditposition <= -Credits::creditmaxposition)
|
||||||
|
|
Loading…
Reference in a new issue