MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / cRegionSetLightingFlicker

Function cRegionSetLightingFlicker

scripts/merc5.cpp:839–852  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

837*/
838
839void cRegionSetLightingFlicker(int state, int region) {
840 int i = 0, ri;
841
842 do {
843 char room_name[32];
844
845 snprintf(room_name, sizeof(room_name), "%s%c", RegionList[region], (i <= 9) ? (char)('0' + i) : ('A' + i - 10));
846 ri = Scrpt_FindRoomName(room_name);
847 if (ri >= 0) {
848 aRoomSetLightingFlicker(state, ri);
849 }
850 i++;
851 } while (i < 36);
852}
853
854/*
855$$ACTION

Callers 1

CallEventMethod · 0.85

Calls 1

aRoomSetLightingFlickerFunction · 0.85

Tested by

no test coverage detected