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

Function cFogRegion

scripts/merc5.cpp:779–793  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

777*/
778
779void cFogRegion(int region, float r, float g, float b, float depth) {
780 // iterate through all room names starting with region string and set fog region
781 int i = 0, ri;
782
783 do {
784 char room_name[32];
785
786 snprintf(room_name, sizeof(room_name), "%s%c", RegionList[region], (i <= 9) ? (char)('0' + i) : ('A' + i - 10));
787 ri = Scrpt_FindRoomName(room_name);
788 if (ri >= 0) {
789 aRoomSetFog(ri, r, g, b, depth);
790 }
791 i++;
792 } while (i < 36);
793}
794
795/*
796$$ACTION

Callers 1

CallEventMethod · 0.85

Calls 1

aRoomSetFogFunction · 0.85

Tested by

no test coverage detected