rnd-20090722-1-src
[rocksndiamonds.git] / src / game_sp / Murphy.c
index 29de96d151881c6f72d97213231bae697e9ee921..55b43e0044d0751efd52c15fe4bbd9366e039541 100644 (file)
@@ -7,7 +7,8 @@
 static void subEatRedDisk(int si);
 static boolean subMoveKillsMurphy(int si, int ax, int bl);
 
-static char *VB_Name = "modMurphy";
+// static char *VB_Name = "modMurphy";
+
 // --- Option Explicit
 
 #define LocalStretch                   (1)
@@ -21,17 +22,19 @@ int subAnimateMurphy(int si)
 {
   int subAnimateMurphy;
 
-  int ax, al, ah, bx, bl, i, X, Y;
-  int tX, tY, tDeltaX, tDeltaY, tPos, Tmp;
+  // int ax, al, ah, bx, bl, i, X, Y;
+  // int tX, tY, tDeltaX, tDeltaY, tPos, Tmp;
+  int ax, al, bx, bl, i, X, Y;
+  int tDeltaX, tDeltaY, tPos, Tmp;
 
   // Variables that hold information about the animation sequence
-  int *dx; // an array of image positions in moving.mpx, finalized with -1
-  int dx2; // an additional image position of a second sprite, for instance: yellow disk if pushed
-  int MurphyDX, MurphyDY; // murphys move steps
-  int SeqPos; // index into dx()
-  int ClearPos; // Position to clear before blitting sprites, none=-1
-  int dxPos; // field-position  to draw dx(SeqPos)
-  int dx2Step; // position of dx2 relative to dx-position
+  static int *dx = 0; // an array of image positions in moving.mpx, finalized with -1
+  static int dx2 = 0; // an additional image position of a second sprite, for instance: yellow disk if pushed
+  static int MurphyDX = 0, MurphyDY = 0; // murphys move steps
+  static int SeqPos = 0; // index into dx()
+  static int ClearPos = 0; // Position to clear before blitting sprites, none=-1
+  static int dxPos = 0; // field-position  to draw dx(SeqPos)
+  static int dx2Step = 0; // position of dx2 relative to dx-position
 
   ax = PlayField16[si];
   al = LowByte(ax);