MCPcopy Create free account
hub / github.com/SimHacker/micropolis / n_faders

Method n_faders

MicropolisCore/src/CellEngine/src/cellengine.cpp:4497–4520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4495
4496
4497void CellEngine::n_faders()
4498{
4499 long sum;
4500 long state;
4501
4502#define FADERS ( \
4503 (sum = SUM8REG(1)), \
4504 ( ((c == 0) && (sum == 2)) \
4505 ? (state = 1) \
4506 : (state = 0)), \
4507 ( (c == 1) \
4508 ? ((sum == 2) \
4509 ? (state = 1) \
4510 : (state = 2)) \
4511 : 0), \
4512 ( (((c & 1) == 0) && \
4513 (0 < c) && \
4514 (c < (unsigned char)(frob & 0xff))) \
4515 ? (state = c + 2) \
4516 : 0), \
4517 (unsigned char)state)
4518
4519 CAM_MASKED_REG_LOOP(FADERS)
4520}
4521
4522
4523// This is a wavy version of flaming marble.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected