summaryrefslogtreecommitdiffstats
path: root/source/cNoise.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-22 18:04:04 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-22 18:04:04 +0100
commit1cb756cbf2611693ec21eec9fd98e4367bb7d918 (patch)
treeaee6ec88277f768365d02727a61e4cd925584ba3 /source/cNoise.h
parentWorldGenerator: fixed small foliage - cacti now generate only at beaches, not underwater. (diff)
downloadcuberite-1cb756cbf2611693ec21eec9fd98e4367bb7d918.tar
cuberite-1cb756cbf2611693ec21eec9fd98e4367bb7d918.tar.gz
cuberite-1cb756cbf2611693ec21eec9fd98e4367bb7d918.tar.bz2
cuberite-1cb756cbf2611693ec21eec9fd98e4367bb7d918.tar.lz
cuberite-1cb756cbf2611693ec21eec9fd98e4367bb7d918.tar.xz
cuberite-1cb756cbf2611693ec21eec9fd98e4367bb7d918.tar.zst
cuberite-1cb756cbf2611693ec21eec9fd98e4367bb7d918.zip
Diffstat (limited to 'source/cNoise.h')
-rw-r--r--source/cNoise.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/source/cNoise.h b/source/cNoise.h
index d4da677f3..a0283fc8d 100644
--- a/source/cNoise.h
+++ b/source/cNoise.h
@@ -6,15 +6,23 @@
// Do not touch
#if NOISE_USE_INLINE
-# define __NOISE_INLINE__ inline
+ #ifdef _MSC_VER
+ #define __NOISE_INLINE__ __forceinline
+ #else
+ #define __NOISE_INLINE__ inline
+ #endif // _MSC_VER
#else
-# define __NOISE_INLINE__
+ #define __NOISE_INLINE__
#endif
#if NOISE_USE_SSE
# include <emmintrin.h>
#endif
+
+
+
+
class cNoise
{
public:
@@ -55,6 +63,14 @@ private:
unsigned int m_Seed;
};
+
+
+
+
#if NOISE_USE_INLINE
# include "cNoise.inc"
#endif
+
+
+
+