aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-runtime/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/fparkan-runtime/src')
-rw-r--r--crates/fparkan-runtime/src/clan_ai_events.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/crates/fparkan-runtime/src/clan_ai_events.rs b/crates/fparkan-runtime/src/clan_ai_events.rs
index 43bcf02f..d82014ec 100644
--- a/crates/fparkan-runtime/src/clan_ai_events.rs
+++ b/crates/fparkan-runtime/src/clan_ai_events.rs
@@ -135,6 +135,21 @@ impl LoadedMissionState {
bundle.formula_table.as_ref(),
&mut state.values,
|instruction, values| match instruction.dispatch_selector() {
+ ScriptDispatchSelector::Handler(9)
+ if instruction.references.is_empty()
+ && instruction.header_words[1] == u32::MAX =>
+ {
+ Ok(None)
+ }
+ ScriptDispatchSelector::Handler(12)
+ if instruction.references.is_empty() =>
+ {
+ let priority = problem
+ .as_ref()
+ .ok_or("Handler(12) requires a current problem")?
+ .scalar_1;
+ Ok(Some(VarSetDefault::FloatBits(priority.to_bits())))
+ }
ScriptDispatchSelector::Handler(59 | 60) => {
crate::script_time::result(instruction, values, clock)
.map(|result| Some(VarSetDefault::Dword(result)))