static void mapgen_blobs(sint32 count, sint32 lowSize, sint32 highSize, sint32 lowHeight, sint32 highHeight) { sint32 i; sint32 sizeRange = highSize - lowSize; sint32 heightRange = highHeight - lowHeight; sint32 border = 2 + (util_rand() % 24); sint32 borderRange = _heightSize - (border * 2); for (i = 0; i < count; i++) { sint32 radius = lowSize + (util_rand() % sizeRange); mapgen_blob( border + (util_rand() % borderRange), border + (util_rand() % borderRange), (sint32)(M_PI * radius * radius), lowHeight + (util_rand() % heightRange) ); } }
static void mapgen_blobs(int count, int lowSize, int highSize, int lowHeight, int highHeight) { int i; int sizeRange = highSize - lowSize; int heightRange = highHeight - lowHeight; int border = 2 + (util_rand() % 24); int borderRange = _heightSize - (border * 2); for (i = 0; i < count; i++) { int radius = lowSize + (util_rand() % sizeRange); mapgen_blob( border + (util_rand() % borderRange), border + (util_rand() % borderRange), (int)(M_PI * radius * radius), lowHeight + (util_rand() % heightRange) ); } }