changeset 364:05c618aa5165

Remove unused function.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 16 Oct 2012 22:34:09 +0300
parents 7d611ebac3e5
children 5a003246a735
files efu.c
diffstat 1 files changed, 0 insertions(+), 22 deletions(-) [+]
line wrap: on
line diff
--- a/efu.c	Tue Oct 16 22:17:04 2012 +0300
+++ b/efu.c	Tue Oct 16 22:34:09 2012 +0300
@@ -150,24 +150,6 @@
     }
 }
 
-void DM_Perlin(SDL_Surface *screen, float f)
-{
-    Uint8 *pix = screen->pixels;
-    int xc, yc;
-
-    for (yc = 0; yc < screen->h; yc++)
-    {
-        Uint8 *dp = pix;
-
-        for (xc = 0; xc < screen->w; xc++)
-        {
-            *dp++ = 128 + dmPerlinNoise2D(xc, yc, 0.01, 0.1, 3) / 34.0;
-        }
-
-        pix += screen->pitch;
-    }
-}
-
 
 #define QWIDTH	256
 #define QHEIGHT	160
@@ -400,10 +382,6 @@
                             DM_Random(bmap, (SDL_GetTicks() / 10) % 1000);
                             break;
 
-                        case SDLK_F2:
-                            DM_Perlin(bmap, SDL_GetTicks() / 100);
-                            break;
-
                         case SDLK_F5:
                             showMap = !showMap;
                             break;