Fixed 2 static lists (#16525)

* Fixed 2 static lists

* Removed second roundup
This commit is contained in:
Selis
2024-10-26 14:47:06 +02:00
committed by GitHub
parent 4ebf8c4303
commit aa06b5d8d0
3 changed files with 9 additions and 4 deletions
-2
View File
@@ -28,8 +28,6 @@
#define ROUND_UP(x) ( -round(-(x)))
#define CEILING(x, y) ( -round(-(x) / (y)) * (y) )
#define ROUND_UP(x) ( -round(-(x)))
// round() acts like floor(x, 1) by default but can't handle other values
#define FLOOR(x, y) ( round((x) / (y)) * (y) )
+2 -2
View File
@@ -64,7 +64,7 @@
// consider sleeping the AI instead.
var/process_flags = 0 // Where we're processing, see flag defines.
var/list/snapshot = null // A list used in mass-editing of AI datums, holding a snapshot of the 'before' state
var/list/static/fastprocess_stances = list(
var/static/list/fastprocess_stances = list(
STANCE_ALERT,
STANCE_APPROACH,
STANCE_FIGHT,
@@ -75,7 +75,7 @@
STANCE_FLEE,
STANCE_DISABLED
)
var/list/static/noprocess_stances = list(
var/static/list/noprocess_stances = list(
STANCE_SLEEP
)
+7
View File
@@ -80,6 +80,13 @@ echo -e "${RED}DISABLED"
# FAILED=1
# fi
part "improperly pathed static lists"
if $grep -i 'var/list/static/.*' $code_files; then
echo
echo -e "${RED}ERROR: Found incorrect static list definition 'var/list/static/', it should be 'var/static/list/' instead.${NC}"
st=1
fi;
part "changelog"
#Checking for a change to html/changelogs/example.yml
md5sum -c - <<< "ea467b7b75774b41ecdf35e07091d96f *html/changelogs/example.yml"