Skip to content

Commit

Permalink
Merge pull request #11 from cadyn/actuallyfixlinux
Browse files Browse the repository at this point in the history
Call non-hooked proc on linux
  • Loading branch information
Putnam3145 authored Jul 22, 2021
2 parents d4a8c49 + 223a423 commit 93f5678
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/turfs/processing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,11 @@ fn post_process() {
let _ = sender.try_send(Box::new(move || {
for &i in &copy {
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("vv_react", &[&turf])?;
} else {
turf.get(byond_string!("air"))?.call("react", &[&turf])?;
}
}
Ok(Value::null())
}));
Expand All @@ -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("vv_react", &[&turf])?;
} else {
turf.get(byond_string!("air"))?.call("react", &[&turf])?;
}
}
for &i in &visual_updaters {
let turf = unsafe { Value::turf_by_id_unchecked(i) };
Expand Down

0 comments on commit 93f5678

Please sign in to comment.