Don't update crewmate colors in text boxes every deltaframe

Colors in over-30-FPS mode shouldn't be updating every deltaframe;
mostly to ensure determinism between switching 30-mode and over-30 mode.
I'm going to overhaul RNG in 2.4 anyway, but right now I'm going to fix
this because I missed it.

The RNG of each special text box is stored in a temporary variable on
the text box itself, and only updated if the color uses it (hence the
big if-statement). Lots of code duplication, but this is acceptable for
now.
This commit is contained in:
Misa
2021-03-23 14:29:32 -07:00
committed by Ethan Lee
parent d749e7e6e8
commit 92416cd910
3 changed files with 18 additions and 4 deletions

View File

@@ -45,6 +45,8 @@ public:
/* Whether to flip text box y-position in Flip Mode. */
bool flipme;
int rand;
};
#endif /* TEXTBOX_H */