I question some people (#28208)

This commit is contained in:
Vi3trice
2025-02-12 13:19:06 +00:00
committed by GitHub
parent 79db47edc6
commit baad3135c9
11 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -63,9 +63,9 @@
#define ISABOUTEQUAL(a, b, deviation) (deviation ? abs((a) - (b)) <= deviation : abs((a) - (b)) <= 0.1)
#define ISEVEN(x) (x % 2 == 0)
#define ISEVEN(x) (!((x) & 1))
#define ISODD(x) (x % 2 != 0)
#define ISODD(x) ((x) & 1)
// Returns true if val is from min to max, inclusive.
#define ISINRANGE(val, min, max) (min <= val && val <= max)
+1 -1
View File
@@ -77,7 +77,7 @@
/proc/ui_hand_position(i)
// values based on old hand ui positions (CENTER:-/+16,SOUTH:5)
var/x_off = i % 2 ? 0 : -1
var/x_off = ISODD(i) ? 0 : -1
var/y_off = round((i-1) / 2)
return"CENTER+[x_off]:16,SOUTH+[y_off]:5"