MCPcopy Create free account
hub / github.com/JACoders/OpenJK / Script_RunDeferred

Function Script_RunDeferred

code/ui/ui_shared.cpp:2490–2502  ·  view source on GitHub ↗

================= Script_RunDeferred Runs the last deferred script, there can only be one script deferred at a time so be careful of recursion ================= */

Source from the content-addressed store, hash-verified

2488=================
2489*/
2490qboolean Script_RunDeferred ( itemDef_t* item, const char **args )
2491{
2492 // Make sure there is something to run.
2493 if ( !uiInfo.deferredScript[0] || !uiInfo.deferredScriptItem )
2494 {
2495 return qtrue;
2496 }
2497
2498 // Run the deferred script now
2499 Item_RunScript ( uiInfo.deferredScriptItem, uiInfo.deferredScript );
2500
2501 return qtrue;
2502}
2503
2504/*
2505=================

Callers

nothing calls this directly

Calls 1

Item_RunScriptFunction · 0.70

Tested by

no test coverage detected