projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20040821-2-src
[rocksndiamonds.git]
/
src
/
init.c
diff --git
a/src/init.c
b/src/init.c
index c62b8c4efef0bc60588cac72a48bd38897a0907c..cdfac29bb3094b75b54c9c212dff24d8c2e4dff5 100644
(file)
--- a/
src/init.c
+++ b/
src/init.c
@@
-560,6
+560,11
@@
void InitElementGraphicInfo()
}
}
}
}
+#if 1
+ /* set hardcoded definitions for some runtime elements without graphic */
+ element_info[EL_AMOEBA_TO_DIAMOND].graphic[ACTION_DEFAULT] = IMG_AMOEBA_DEAD;
+#endif
+
#if 1
/* now set all undefined/invalid graphics to -1 to set to default after it */
for (i = 0; i < MAX_NUM_ELEMENTS; i++)
#if 1
/* now set all undefined/invalid graphics to -1 to set to default after it */
for (i = 0; i < MAX_NUM_ELEMENTS; i++)
@@
-646,6
+651,7
@@
void InitElementGraphicInfo()
default_action_crumbled = element_info[EL_SB_DEFAULT].crumbled[act];
#if 1
default_action_crumbled = element_info[EL_SB_DEFAULT].crumbled[act];
#if 1
+ /* !!! needed because EL_EMPTY_SPACE treated as IS_SP_ELEMENT !!! */
/* !!! make this better !!! */
if (i == EL_EMPTY_SPACE)
{
/* !!! make this better !!! */
if (i == EL_EMPTY_SPACE)
{
@@
-4431,10
+4437,20
@@
void OpenAll()
DrawMainMenu();
InitNetworkServer();
DrawMainMenu();
InitNetworkServer();
+
+#if 1
+ em_open_all();
+#endif
+
}
void CloseAllAndExit(int exit_value)
{
}
void CloseAllAndExit(int exit_value)
{
+
+#if 1
+ em_close_all();
+#endif
+
StopSounds();
FreeAllSounds();
FreeAllMusic();
StopSounds();
FreeAllSounds();
FreeAllMusic();