From e0ae3e5bd41550f48d5ad9d154e115c48249ce25 Mon Sep 17 00:00:00 2001 From: Cadyn Bombaci Date: Wed, 21 Jul 2021 19:53:38 -0700 Subject: [PATCH 1/2] Call non-hooked proc on linux --- src/turfs/processing.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/turfs/processing.rs b/src/turfs/processing.rs index 5573cb3b..eaac405f 100644 --- a/src/turfs/processing.rs +++ b/src/turfs/processing.rs @@ -677,7 +677,11 @@ fn post_process() { let _ = sender.try_send(Box::new(move || { for &i in © { let turf = unsafe { Value::turf_by_id_unchecked(i) }; - turf.get(byond_string!("air"))?.call("react", &[&turf])?; + if cfg!(target_os="linux") { + turf.get(byond_string!("air"))?.call("react_unhooked", &[&turf])?; + } else { + turf.get(byond_string!("air"))?.call("react", &[&turf])?; + } } Ok(Value::null()) })); @@ -688,7 +692,11 @@ fn post_process() { let _ = sender.try_send(Box::new(move || { for &i in &reacters { let turf = unsafe { Value::turf_by_id_unchecked(i) }; - turf.get(byond_string!("air"))?.call("react", &[&turf])?; + if cfg!(target_os="linux") { + turf.get(byond_string!("air"))?.call("react_unhooked", &[&turf])?; + } else { + turf.get(byond_string!("air"))?.call("react", &[&turf])?; + } } for &i in &visual_updaters { let turf = unsafe { Value::turf_by_id_unchecked(i) }; From 223a423eb477aea2b8946acfa585d52dc8159d5c Mon Sep 17 00:00:00 2001 From: Cadyn Bombaci Date: Wed, 21 Jul 2021 20:15:58 -0700 Subject: [PATCH 2/2] vv_react hook already does this actually --- src/turfs/processing.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/turfs/processing.rs b/src/turfs/processing.rs index eaac405f..45741874 100644 --- a/src/turfs/processing.rs +++ b/src/turfs/processing.rs @@ -678,7 +678,7 @@ fn post_process() { for &i in © { let turf = unsafe { Value::turf_by_id_unchecked(i) }; if cfg!(target_os="linux") { - turf.get(byond_string!("air"))?.call("react_unhooked", &[&turf])?; + turf.get(byond_string!("air"))?.call("vv_react", &[&turf])?; } else { turf.get(byond_string!("air"))?.call("react", &[&turf])?; } @@ -693,7 +693,7 @@ fn post_process() { for &i in &reacters { let turf = unsafe { Value::turf_by_id_unchecked(i) }; if cfg!(target_os="linux") { - turf.get(byond_string!("air"))?.call("react_unhooked", &[&turf])?; + turf.get(byond_string!("air"))?.call("vv_react", &[&turf])?; } else { turf.get(byond_string!("air"))?.call("react", &[&turf])?; }