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

Method n_heaco

MicropolisCore/src/CellEngine/src/cellengine.cpp:3064–3079  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3062
3063
3064void CellEngine::n_heaco()
3065{
3066 long sum;
3067 long last = 0;
3068
3069#define HEACO \
3070 (Byte)( \
3071 (sum = nw + n + ne + w + e + sw + s + se + frob + last), \
3072 (last = sum & 31), \
3073 (sum = (sum >> 3) & (~3)), \
3074 (sum | ((c&1) << 1) | \
3075 (((c&3) == 0) && \
3076 (SUM8REG(1) == 2))))
3077
3078 CAM_MASKED_REG_LOOP(HEACO)
3079}
3080
3081
3082// This is a thicker version of dithered heat diffusion,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected