projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added description for BD style explosion
[rocksndiamonds.git]
/
src
/
game_mm
/
mm_init.c
diff --git
a/src/game_mm/mm_init.c
b/src/game_mm/mm_init.c
index 1906c97d3bbb69fb75d58cc868aac7d0bcb91e82..b7dcbe35ebcfb424bacc353ca5164cbb728cbb8f 100644
(file)
--- a/
src/game_mm/mm_init.c
+++ b/
src/game_mm/mm_init.c
@@
-4,7
+4,7
@@
// (c) 1994-2017 by Artsoft Entertainment
// Holger Schemel
// info@artsoft.org
// (c) 1994-2017 by Artsoft Entertainment
// Holger Schemel
// info@artsoft.org
-// http://www.artsoft.org/
+// http
s
://www.artsoft.org/
// ----------------------------------------------------------------------------
// mm_init.c
// ============================================================================
// ----------------------------------------------------------------------------
// mm_init.c
// ============================================================================
@@
-14,9
+14,16
@@
#include "mm_main.h"
#include "mm_main.h"
+Bitmap *drawto_mm;
+
struct EngineSnapshotInfo_MM engine_snapshot_mm;
struct EngineSnapshotInfo_MM engine_snapshot_mm;
+void InitGfxBuffers_MM(void)
+{
+ ReCreateBitmap(&drawto_mm, video.width, video.height);
+}
+
unsigned int InitEngineRandom_MM(int seed)
{
return InitEngineRandom(seed);
unsigned int InitEngineRandom_MM(int seed)
{
return InitEngineRandom(seed);
@@
-24,7
+31,7
@@
unsigned int InitEngineRandom_MM(int seed)
void InitElementProperties_MM(void)
{
void InitElementProperties_MM(void)
{
- int i,j;
+ int i,
j;
static int ep_grid[] =
{
static int ep_grid[] =
{
@@
-171,6
+178,15
@@
void InitElementProperties_MM(void)
};
static int ep_pacman_num = sizeof(ep_pacman) / sizeof(int);
};
static int ep_pacman_num = sizeof(ep_pacman) / sizeof(int);
+ static int ep_envelope[] =
+ {
+ EL_ENVELOPE_1,
+ EL_ENVELOPE_2,
+ EL_ENVELOPE_3,
+ EL_ENVELOPE_4,
+ };
+ static int ep_envelope_num = sizeof(ep_envelope) / sizeof(int);
+
static long ep_bit[] =
{
EP_BIT_GRID,
static long ep_bit[] =
{
EP_BIT_GRID,
@@
-186,6
+202,7
@@
void InitElementProperties_MM(void)
EP_BIT_INACTIVE,
EP_BIT_WALL,
EP_BIT_PACMAN,
EP_BIT_INACTIVE,
EP_BIT_WALL,
EP_BIT_PACMAN,
+ EP_BIT_ENVELOPE,
};
static int *ep_array[] =
{
};
static int *ep_array[] =
{
@@
-202,6
+219,7
@@
void InitElementProperties_MM(void)
ep_inactive,
ep_wall,
ep_pacman,
ep_inactive,
ep_wall,
ep_pacman,
+ ep_envelope,
};
static int *ep_num[] =
{
};
static int *ep_num[] =
{
@@
-218,20
+236,21
@@
void InitElementProperties_MM(void)
&ep_inactive_num,
&ep_wall_num,
&ep_pacman_num,
&ep_inactive_num,
&ep_wall_num,
&ep_pacman_num,
+ &ep_envelope_num,
};
static int num_properties = sizeof(ep_num) / sizeof(int *);
};
static int num_properties = sizeof(ep_num) / sizeof(int *);
- for(i = 0; i < MAX_ELEMENTS; i++)
+ for
(i = 0; i < MAX_ELEMENTS; i++)
Elementeigenschaften[i] = 0;
Elementeigenschaften[i] = 0;
- for(i = 0; i < num_properties; i++)
- for(j = 0; j < *(ep_num[i]); j++)
+ for
(i = 0; i < num_properties; i++)
+ for
(j = 0; j < *(ep_num[i]); j++)
Elementeigenschaften[(ep_array[i])[j]] |= ep_bit[i];
Elementeigenschaften[(ep_array[i])[j]] |= ep_bit[i];
- for(i = EL_CHAR_START; i <= EL_CHAR_END; i++)
+ for
(i = EL_CHAR_START; i <= EL_CHAR_END; i++)
Elementeigenschaften[i] |= (EP_BIT_CHAR | EP_BIT_INACTIVE);
Elementeigenschaften[i] |= (EP_BIT_CHAR | EP_BIT_INACTIVE);
- for(i = EL_WALL_START; i <= EL_WALL_END; i++)
+ for
(i = EL_WALL_START; i <= EL_WALL_END; i++)
Elementeigenschaften[i] |= EP_BIT_WALL;
}
Elementeigenschaften[i] |= EP_BIT_WALL;
}
@@
-239,7
+258,3
@@
void mm_open_all(void)
{
InitElementProperties_MM();
}
{
InitElementProperties_MM();
}
-
-void mm_close_all(void)
-{
-}