Skip to content

Commit

Permalink
shiez
Browse files Browse the repository at this point in the history
  • Loading branch information
jupyterkat committed Jun 29, 2023
1 parent bee24ff commit 973d5b0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/turfs/groups.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ pub fn send_to_groups(sent: BTreeSet<TurfID>) {

#[hook("/datum/controller/subsystem/air/proc/process_excited_groups_auxtools")]
fn _groups_hook(remaining: Value) {
rebuild_turf_graph()?;
let group_pressure_goal = src
.get_number(byond_string!("excited_group_pressure_goal"))
.unwrap_or(0.5);
Expand Down
1 change: 0 additions & 1 deletion src/turfs/katmos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,6 @@ fn send_pressure_differences(

#[hook("/datum/controller/subsystem/air/proc/process_turf_equalize_auxtools")]
fn _equalize_hook(remaining: Value) {
rebuild_turf_graph()?;
let equalize_hard_turf_limit = src
.get_number(byond_string!("equalize_hard_turf_limit"))
.unwrap_or(2000.0) as usize;
Expand Down
8 changes: 6 additions & 2 deletions src/turfs/processing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,14 @@ fn _thread_running_hook() {
Ok(Value::from(TASKS.try_write().is_none()))
}

#[hook("/datum/controller/subsystem/air/proc/update_adjacency_graph")]
fn _rebuild_turf_graph_hook() {
rebuild_turf_graph()?;
Ok(Value::null())
}

#[hook("/datum/controller/subsystem/air/proc/finish_turf_processing_auxtools")]
fn _finish_process_turfs() {
rebuild_turf_graph()?;
let arg_limit = args
.get(0)
.ok_or_else(|| runtime!("Wrong number of arguments to turf finishing: 0"))?
Expand All @@ -66,7 +71,6 @@ fn _finish_process_turfs() {

#[hook("/datum/controller/subsystem/air/proc/process_turfs_auxtools")]
fn _process_turf_notify() {
rebuild_turf_graph()?;
let sender = processing_callbacks_sender();
let fdm_max_steps = src
.get_number(byond_string!("share_max_steps"))
Expand Down

0 comments on commit 973d5b0

Please sign in to comment.