projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed some bugs and added some speed when scaling in-game tile size
[rocksndiamonds.git]
/
src
/
game_em
/
tab_generate.c
diff --git
a/src/game_em/tab_generate.c
b/src/game_em/tab_generate.c
index 75c47b3795afc0345af4817394b0130b9e051ab8..8a3f731ad55ccf0549658b5d326fde7ba2796784 100644
(file)
--- a/
src/game_em/tab_generate.c
+++ b/
src/game_em/tab_generate.c
@@
-11,11
+11,10
@@
* modify.
*/
* modify.
*/
-#include "tile.h"
-#include "display.h"
+#include "main_em.h"
-/* ---------------------------------------------------------------------- */
+/* ----------------------------------------------------------------------
---
*/
/* 0=stop 1=blank */
int tile_blank[] =
/* 0=stop 1=blank */
int tile_blank[] =
@@
-69,7
+68,8
@@
int tile_android_move[] =
TILE_MAX
};
TILE_MAX
};
-/* ---------------------------------------------------------------------- */
+
+/* ------------------------------------------------------------------------- */
/* explosions: special format */
/* everything is initially filled with Xboom_1 */
/* explosions: special format */
/* everything is initially filled with Xboom_1 */
@@
-152,7
+152,8
@@
int tile_explode[] =
TILE_MAX /* up until here are dynamite explosions */
};
TILE_MAX /* up until here are dynamite explosions */
};
-/* ---------------------------------------------------------------------- */
+
+/* ------------------------------------------------------------------------- */
/* map the graphics file to internal tiles and animations
*
/* map the graphics file to internal tiles and animations
*
@@
-4435,7
+4436,7
@@
unsigned short map_ttl[128];
struct GraphicInfo_EM graphic_info_em_object[TILE_MAX][8];
/* map player number, frames and action to graphic info */
struct GraphicInfo_EM graphic_info_em_object[TILE_MAX][8];
/* map player number, frames and action to graphic info */
-struct GraphicInfo_EM graphic_info_em_player[
2
][SPR_MAX][8];
+struct GraphicInfo_EM graphic_info_em_player[
MAX_PLAYERS
][SPR_MAX][8];
void create_tab(int *invert, unsigned char *array)
{
void create_tab(int *invert, unsigned char *array)
{
@@
-4641,14
+4642,14
@@
void create_spr_graphics_info_em()
{
int i, j, k;
{
int i, j, k;
- for (i = 0; i <
2
; i++)
+ for (i = 0; i <
MAX_PLAYERS
; i++)
{
for (j = 0; j < SPR_MAX; j++)
{
for (k = 0; k < 8; k++)
{
struct GraphicInfo_EM *g = &graphic_info_em_player[i][j][k];
{
for (j = 0; j < SPR_MAX; j++)
{
for (k = 0; k < 8; k++)
{
struct GraphicInfo_EM *g = &graphic_info_em_player[i][j][k];
- int spr = map_spr[i][k][j];
+ int spr = map_spr[i
% 2
][k][j];
g->bitmap = sprBitmap;
g->src_x = (spr / 8) * TILEX;
g->bitmap = sprBitmap;
g->src_x = (spr / 8) * TILEX;