================= Script_RunDeferred Runs the last deferred script, there can only be one script deferred at a time so be careful of recursion ================= */
| 2488 | ================= |
| 2489 | */ |
| 2490 | qboolean 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 | ================= |
nothing calls this directly
no test coverage detected