Move activity prompt render updating to gamerenderfixed()

This probably should've been moved to RenderFixed a while ago, because
it's unnecessary to run this on every single deltaframe.

The only minor wrinkle here is that this means rendering of activity
zone fades will be delayed for 1 frame, but #535 will fix that.
This commit is contained in:
Misa authored and Ethan Lee committed 2021-03-05 18:00:20 -05:00
1 parent 84928f8210
commit 9f69506acf
2 files changed
+8 -7

No files matched your search

+8
View File
@@ -1527,6 +1527,14 @@ void gamelogic(void)
game.activeactivity = obj.checkactivity();
if (INBOUNDS_VEC(game.activeactivity, obj.entities))
{
game.activity_lastprompt = obj.blocks[game.activeactivity].prompt;
game.activity_r = obj.blocks[game.activeactivity].r;
game.activity_g = obj.blocks[game.activeactivity].g;
game.activity_b = obj.blocks[game.activeactivity].b;
}
game.oldreadytotele = game.readytotele;
if (game.activetele && !game.advancetext && game.hascontrol && !script.running && !game.intimetrial)
{