fixed code to compile with current gcc and 64-bit systems
[rocksndiamonds.git] / src / editor.c
index ee7fe4e58942403d9a98ae51274dee45b79c515f..8aa1971f8e93be9a577cf6708555ba63af3b96cc 100644 (file)
@@ -727,7 +727,7 @@ void LevelEd(int mx, int my, int button)
     }
     else                       /********** KONTROLL-FENSTER **********/
     {
-      static long choice_delay = 0;
+      static int choice_delay = 0;
       int choice = CheckCountButtons(mx,my,button);
       int step = (button==1 ? 1 : button==2 ? 5 : button==3 ? 10 : 0);
 
@@ -1085,7 +1085,7 @@ void LevelNameTyping(KeySym key)
   }
 }
 
-void DrawEditButton(unsigned long state)
+void DrawEditButton(unsigned int state)
 {
   int i;
   int xpos = 0, ypos = 1, xsize = 2, ysize = 3;
@@ -1129,7 +1129,7 @@ void DrawEditButton(unsigned long state)
   redraw_mask |= REDRAW_DOOR_2;
 }
 
-void DrawCtrlButton(unsigned long state)
+void DrawCtrlButton(unsigned int state)
 {
   int i;
   int xpos = 0, ypos = 1, xsize = 2, ysize = 3;