clean up Lua frame handling a bit

There's no need to keep all this infrastructure to run every frame for a barely used situation.  This cleans it up a bit and does the position reset in the actual drawString function.
This commit is contained in:
Goober5000 committed 2022-07-08 18:59:10 -04:00
1 parent 2fd98c908b
commit 826dfd01fc
6 files changed
+9 -24

No files matched your search

-5
View File
@@ -185,11 +185,6 @@ int script_state::CreateLuaState()
return 1;
}
void script_state::EndLuaFrame()
{
scripting::api::graphics_on_frame();
}
static bool sort_table_entries(const ade_table_entry* left, const ade_table_entry* right) {
const char* leftCmp = left->Name != nullptr ? left->Name : left->ShortName;
const char* rightCmp = right->Name != nullptr ? right->Name : left->ShortName;