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

Function cChangeFogRegion

scripts/merc5.cpp:809–823  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

807*/
808
809void cChangeFogRegion(int region, float r, float g, float b, float depth, float time) {
810 // iterate through all room names starting with region string and set fog region
811 int i = 0, ri;
812
813 do {
814 char room_name[32];
815
816 snprintf(room_name, sizeof(room_name), "%s%c", RegionList[region], (i <= 9) ? (char)('0' + i) : ('A' + i - 10));
817 ri = Scrpt_FindRoomName(room_name);
818 if (ri >= 0) {
819 aRoomChangeFog(ri, r, g, b, depth, time);
820 }
821 i++;
822 } while (i < 36);
823}
824
825/*
826$$ACTION

Callers 1

CallEventMethod · 0.85

Calls 1

aRoomChangeFogFunction · 0.85

Tested by

no test coverage detected