X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=fractalnoise.c;h=06d00db0eedbc805291b94771b13178d17bbcc42;hp=73f122eca95a2414ce12e04448adcd4f4b901f0d;hb=becb9918a349c7d7811b60154cd4b516141e4fc7;hpb=c4ee1bbcc6b2f917465f07269ad09942bbf40849 diff --git a/fractalnoise.c b/fractalnoise.c index 73f122ec..06d00db0 100644 --- a/fractalnoise.c +++ b/fractalnoise.c @@ -32,7 +32,7 @@ void fractalnoise(qbyte *noise, int size, int startgrid) g = g2 >> 1; if (g) { - // subdivide, diamond-square algorythm (really this has little to do with squares) + // subdivide, diamond-square algorithm (really this has little to do with squares) // diamond for (y = 0;y < size;y += g2) for (x = 0;x < size;x += g2) @@ -94,7 +94,7 @@ void fractalnoisequick(qbyte *noise, int size, int startgrid) g = g2 >> 1; if (g) { - // subdivide, diamond-square algorythm (really this has little to do with squares) + // subdivide, diamond-square algorithm (really this has little to do with squares) // diamond for (y = 0;y < size;y += g2) for (x = 0;x < size;x += g2) @@ -110,3 +110,4 @@ void fractalnoisequick(qbyte *noise, int size, int startgrid) } #undef n } +