diff options
author | Neil Moore <neil@s-z.org> | 2013-04-07 15:29:46 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2013-04-07 15:29:46 -0400 |
commit | b43373922bae05f8806c34a94107ead09e12be7d (patch) | |
tree | 811a170d8cb44a5346dd6e829ab3867681ebc48a /crawl-ref/source/worley.cc | |
parent | 1b7deb92a38c7dc7acdb27961ad93248fdb8afc9 (diff) | |
download | crawl-ref-b43373922bae05f8806c34a94107ead09e12be7d.tar.gz crawl-ref-b43373922bae05f8806c34a94107ead09e12be7d.zip |
Make some functions static.
Diffstat (limited to 'crawl-ref/source/worley.cc')
-rw-r--r-- | crawl-ref/source/worley.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/worley.cc b/crawl-ref/source/worley.cc index ff7cac3bfa..03c4674b3e 100644 --- a/crawl-ref/source/worley.cc +++ b/crawl-ref/source/worley.cc @@ -39,7 +39,7 @@ namespace worley { /* This macro is a *lot* faster than using (int32_t)floor() on an x86 CPU. - It actually speeds up the entire Worley() call with almost 10%. + It actually speeds up the entire _worley() call with almost 10%. Added by Stefan Gustavson, October 2003. */ #define LFLOOR(x) ((x)<0 ? ((int32_t)x-1) : ((int32_t)x) ) @@ -69,7 +69,7 @@ namespace worley /* The main function! */ - void Worley(double at[3], int32_t max_order, + static void _worley(double at[3], int32_t max_order, double *F, double (*delta)[3], uint32_t *ID) { double x2,y2,z2, mx2, my2, mz2; @@ -287,7 +287,7 @@ cases.] double delta[2][3]; uint32_t id[2]; - Worley(point, 2, F, delta, id); + _worley(point, 2, F, delta, id); noise_datum datum; datum.distance[0] = F[0]; |