projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20091205-1-src
[rocksndiamonds.git]
/
src
/
init.c
diff --git
a/src/init.c
b/src/init.c
index 6b7cc72e6d8fbe8529e758d281f82d843cfa551b..f9ae5996bf77f5aa88748e3b8c9c40f087673e66 100644
(file)
--- a/
src/init.c
+++ b/
src/init.c
@@
-329,6
+329,14
@@
void SetBitmaps_EM(Bitmap **em_bitmap)
}
#endif
}
#endif
+#if 1
+/* !!! FIX THIS (CHANGE TO USING NORMAL ELEMENT GRAPHIC DEFINITIONS) !!! */
+void SetBitmaps_SP(Bitmap **sp_bitmap)
+{
+ *sp_bitmap = graphic_info[IMG_SP_OBJECTS].bitmap;
+}
+#endif
+
static int getFontBitmapID(int font_nr)
{
int special = -1;
static int getFontBitmapID(int font_nr)
{
int special = -1;
@@
-3153,10
+3161,16
@@
void InitElementPropertiesStatic()
EL_SOKOBAN_FIELD_EMPTY,
EL_EXIT_OPEN,
EL_EM_EXIT_OPEN,
EL_SOKOBAN_FIELD_EMPTY,
EL_EXIT_OPEN,
EL_EM_EXIT_OPEN,
+#if 1
+ EL_EM_EXIT_OPENING,
+#endif
EL_SP_EXIT_OPEN,
EL_SP_EXIT_OPENING,
EL_STEEL_EXIT_OPEN,
EL_EM_STEEL_EXIT_OPEN,
EL_SP_EXIT_OPEN,
EL_SP_EXIT_OPENING,
EL_STEEL_EXIT_OPEN,
EL_EM_STEEL_EXIT_OPEN,
+#if 1
+ EL_EM_STEEL_EXIT_OPENING,
+#endif
EL_GATE_1,
EL_GATE_2,
EL_GATE_3,
EL_GATE_1,
EL_GATE_2,
EL_GATE_3,
@@
-5118,7
+5132,7
@@
void Execute_Command(char *command)
exit(0);
}
exit(0);
}
- else if (str
ncmp(command, "dump level ", 11) == 0
)
+ else if (str
Prefix(command, "dump level ")
)
{
char *filename = &command[11];
{
char *filename = &command[11];
@@
-5130,7
+5144,7
@@
void Execute_Command(char *command)
exit(0);
}
exit(0);
}
- else if (str
ncmp(command, "dump tape ", 10) == 0
)
+ else if (str
Prefix(command, "dump tape ")
)
{
char *filename = &command[10];
{
char *filename = &command[10];
@@
-5142,7
+5156,7
@@
void Execute_Command(char *command)
exit(0);
}
exit(0);
}
- else if (str
ncmp(command, "autoplay ", 9) == 0
)
+ else if (str
Prefix(command, "autoplay ")
)
{
char *str_ptr = getStringCopy(&command[9]); /* read command parameters */
{
char *str_ptr = getStringCopy(&command[9]); /* read command parameters */
@@
-5178,9
+5192,9
@@
void Execute_Command(char *command)
str_ptr++;
}
}
str_ptr++;
}
}
- else if (str
ncmp(command, "convert ", 8) == 0
)
+ else if (str
Prefix(command, "convert ")
)
{
{
- char *str_copy = getStringCopy(
&command[8]
);
+ char *str_copy = getStringCopy(
strchr(command, ' ') + 1
);
char *str_ptr = strchr(str_copy, ' ');
global.convert_leveldir = str_copy;
char *str_ptr = strchr(str_copy, ' ');
global.convert_leveldir = str_copy;
@@
-5192,7
+5206,7
@@
void Execute_Command(char *command)
global.convert_level_nr = atoi(str_ptr); /* get level_nr value */
}
}
global.convert_level_nr = atoi(str_ptr); /* get level_nr value */
}
}
- else if (str
ncmp(command, "create images ", 14) == 0
)
+ else if (str
Prefix(command, "create images ")
)
{
#if defined(TARGET_SDL)
global.create_images_dir = getStringCopy(&command[14]);
{
#if defined(TARGET_SDL)
global.create_images_dir = getStringCopy(&command[14]);
@@
-5494,6
+5508,7
@@
void InitGfx()
bitmap_db_field);
InitGfxDoor1Info(DX, DY, DXSIZE, DYSIZE);
InitGfxDoor2Info(VX, VY, VXSIZE, VYSIZE);
bitmap_db_field);
InitGfxDoor1Info(DX, DY, DXSIZE, DYSIZE);
InitGfxDoor2Info(VX, VY, VXSIZE, VYSIZE);
+ InitGfxWindowInfo(WIN_XSIZE, WIN_YSIZE);
InitGfxScrollbufferInfo(FXSIZE, FYSIZE);
InitGfxCustomArtworkInfo();
InitGfxScrollbufferInfo(FXSIZE, FYSIZE);
InitGfxCustomArtworkInfo();
@@
-6184,6
+6199,7
@@
void OpenAll()
InitElementPropertiesStatic();
InitElementPropertiesEngine(GAME_VERSION_ACTUAL);
InitElementPropertiesStatic();
InitElementPropertiesEngine(GAME_VERSION_ACTUAL);
+ InitElementPropertiesGfxElement();
print_timestamp_time("[post-video]");
print_timestamp_time("[post-video]");
@@
-6215,6
+6231,10
@@
void OpenAll()
em_open_all();
#endif
em_open_all();
#endif
+#if 1
+ sp_open_all();
+#endif
+
if (global.autoplay_leveldir)
{
AutoPlayTape();
if (global.autoplay_leveldir)
{
AutoPlayTape();
@@
-6262,6
+6282,10
@@
void CloseAllAndExit(int exit_value)
em_close_all();
#endif
em_close_all();
#endif
+#if 1
+ sp_close_all();
+#endif
+
FreeAllImages();
#if defined(TARGET_SDL)
FreeAllImages();
#if defined(TARGET_SDL)