Skip to content

Commit

Permalink
Globals generated
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorDinamit committed Sep 23, 2023
1 parent 35e5c13 commit 157ae27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions code/_helpers/global_access.dm
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@
return global.z_levels;
if("zone_blocked")
return global.zone_blocked;

/proc/writeglobal(which, newval)
switch(which)
if("ANTAG_FREQS")
Expand Down Expand Up @@ -1776,7 +1776,7 @@
global.z_levels=newval;
if("zone_blocked")
global.zone_blocked=newval;

/var/list/_all_globals=list(
"ANTAG_FREQS",
"AWAY_FREQS_ASSIGNED",
Expand Down Expand Up @@ -1926,7 +1926,6 @@
"antag_add_finished",
"appearance_manager",
"area_repository",
"artefact_feedback",
"ascii_esc",
"ascii_green",
"ascii_red",
Expand Down Expand Up @@ -2157,7 +2156,6 @@
"sounds_cache",
"spacevines_spawned",
"sparring_attack_cache",
"spells",
"splatter_cache",
"sqladdress",
"sqldb",
Expand Down
2 changes: 1 addition & 1 deletion test/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ function run_byond_tests {
source $HOME/BYOND-${BYOND_MAJOR}.${BYOND_MINOR}/byond/bin/byondsetup
fi
run_test_ci "check globals build" "python3 tools/GenerateGlobalVarAccess/gen_globals.py baystation12.dme code/_helpers/global_access.dm"
run_test "check globals unchanged" "md5sum -c - <<< 'd09fe7553ab7ad937bdae9cb28b9263f *code/_helpers/global_access.dm'"
run_test "check globals unchanged" "md5sum -c - <<< '6ca1efcff98fd2e0318aed341e319e53 *code/_helpers/global_access.dm'"
run_test "build map unit tests" "scripts/dm.sh -DUNIT_TEST -M$MAP_PATH baystation12.dme"
run_test "check no warnings in build" "grep ', 0 warnings' build_log.txt"
run_test "run unit tests" "DreamDaemon baystation12.dmb -invisible -trusted -core 2>&1 | tee log.txt"
Expand Down

0 comments on commit 157ae27

Please sign in to comment.