Skip to content

Commit

Permalink
undo that
Browse files Browse the repository at this point in the history
  • Loading branch information
jupyterkat committed Jul 3, 2023
1 parent e238484 commit 851412b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/turfs/groups.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ 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: 1 addition & 0 deletions src/turfs/katmos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,7 @@ 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
2 changes: 2 additions & 0 deletions src/turfs/processing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ fn rebuild_turf_graph_hook() {

#[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 @@ -71,6 +72,7 @@ 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
1 change: 1 addition & 0 deletions src/turfs/superconduct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ fn hook_turf_temperature() {
// Returns: TRUE if thread not done, FALSE otherwise
#[hook("/datum/controller/subsystem/air/proc/process_turf_heat")]
fn process_heat_notify() {
rebuild_turf_graph()?;
/*
Replacing LINDA's superconductivity system is this much more brute-force
system--it shares heat between turfs and their neighbors,
Expand Down

0 comments on commit 851412b

Please sign in to comment.