summaryrefslogtreecommitdiff
path: root/src/simulation/senses.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/simulation/senses.js')
-rw-r--r--src/simulation/senses.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/simulation/senses.js b/src/simulation/senses.js
index 9cc6c41..23775b6 100644
--- a/src/simulation/senses.js
+++ b/src/simulation/senses.js
@@ -132,10 +132,11 @@ function see_agent(viewer, agent) {
3: 0.8,
}[agent.flags.team] + (identity_mod(agent.id, 11)/16);
const orientation = relative_orientation(viewer, agent) + (identity_mod(agent.id, 37)/16);
+ const frozen = agent.flags.frozen || agent.flags.pretend_frozen;
const type = (() => {
- if (agent.flags.frozen && agent.flags.flag) {
+ if (frozen && agent.flags.flag) {
return -0.4;
- } else if (agent.flags.frozen) {
+ } else if (frozen) {
return -0.8;
} else if (agent.flags.flag) {
return 0.8;