# PROFILING = $(PROFILING_FLAGS)
# OPTIONS = $(DEBUG) -Wall # only for debugging purposes
-OPTIONS = $(DEBUG) -O3 -Wall # only for debugging purposes
+# OPTIONS = $(DEBUG) -O3 -Wall # only for debugging purposes
+OPTIONS = $(DEBUG) -Wall # only for debugging purposes
# OPTIONS = $(DEBUG) -Wall -ansi -pedantic # only for debugging purposes
# OPTIONS = -O3 -Wall -ansi -pedantic
# OPTIONS = -O3 -Wall
EL_ARROW_RED_DOWN, -1, -1,
IMG_ARROW_RED_DOWN
},
- {
- EL_BUG, -1, -1,
- IMG_BUG_RIGHT
- },
{
EL_DOOR_WHITE, -1, -1,
IMG_CHAR_QUESTION
EL_KEY_WHITE, -1, -1,
IMG_CHAR_QUESTION
},
- {
- EL_PACMAN, -1, -1,
- IMG_PACMAN_RIGHT
- },
{
EL_SIGN_EXIT, -1, -1,
IMG_CHAR_QUESTION
EL_SIGN_YINYANG, -1, -1,
IMG_CHAR_QUESTION
},
- {
- EL_SPACESHIP, -1, -1,
- IMG_SPACESHIP_RIGHT
- },
{
EL_CHAR_SPACE, -1, -1,
IMG_CHAR_SPACE
EL_INVISIBLE_STEELWALL_VERTICAL, GFX_SPECIAL_ARG_EDITOR,
IMG_INVISIBLE_STEELWALL_VERTICAL_EDITOR
},
+ {
+ EL_BUG, GFX_SPECIAL_ARG_EDITOR,
+ IMG_BUG_RIGHT
+ },
+ {
+ EL_BUG, GFX_SPECIAL_ARG_PREVIEW,
+ IMG_BUG_RIGHT
+ },
+ {
+ EL_PACMAN, GFX_SPECIAL_ARG_EDITOR,
+ IMG_PACMAN_RIGHT
+ },
+ {
+ EL_PACMAN, GFX_SPECIAL_ARG_PREVIEW,
+ IMG_PACMAN_RIGHT
+ },
+ {
+ EL_SPACESHIP, GFX_SPECIAL_ARG_EDITOR,
+ IMG_SPACESHIP_RIGHT
+ },
+ {
+ EL_SPACESHIP, GFX_SPECIAL_ARG_PREVIEW,
+ IMG_SPACESHIP_RIGHT
+ },
{
-1, -1,
-1
-#define COMPILE_DATE_STRING "[2003-02-11 10:29]"
+#define COMPILE_DATE_STRING "[2003-02-15 00:07]"
si->editor.el_diamond_caves = TRUE;
si->editor.el_dx_boulderdash = TRUE;
si->editor.el_chars = TRUE;
- si->editor.el_custom = FALSE;
+ si->editor.el_custom = TRUE;
si->shortcut.save_game = DEFAULT_KEY_SAVE_GAME;
si->shortcut.load_game = DEFAULT_KEY_LOAD_GAME;
static void InitGraphicInfo()
{
- static boolean clipmasks_initialized = FALSE;
int fallback_graphic = IMG_CHAR_EXCLAM;
struct FileInfo *fallback_image = getImageListEntry(fallback_graphic);
Bitmap *fallback_bitmap = getBitmapFromImageID(fallback_graphic);
int num_images = getImageListSize();
int i;
+
#if defined(TARGET_X11_NATIVE_PERFORMANCE_WORKAROUND)
+ static boolean clipmasks_initialized = FALSE;
Pixmap src_pixmap;
XGCValues clip_gc_values;
unsigned long clip_gc_valuemask;
clip_gc_values.graphics_exposures = False;
clip_gc_values.clip_mask = graphic_info[i].clip_mask;
clip_gc_valuemask = GCGraphicsExposures | GCClipMask;
+
graphic_info[i].clip_gc =
XCreateGC(display, window->drawable, clip_gc_valuemask, &clip_gc_values);
#endif
#if defined(TARGET_X11_NATIVE_PERFORMANCE_WORKAROUND)
if (copy_clipmask_gc)
XFreeGC(display, copy_clipmask_gc);
-#endif
clipmasks_initialized = TRUE;
+#endif
}
static void InitElementSoundInfo()
options.verbose = FALSE;
options.debug = FALSE;
+#if !defined(PLATFORM_UNIX)
+ if (*options_left == NULL) /* no options given -- enable verbose mode */
+ options.verbose = TRUE;
+#endif
+
while (*options_left)
{
char option_str[MAX_OPTION_LEN];
if (count == 0)
{
if ((value_int = fgetc(file)) == EOF)
+ {
+ free(row_buffer);
return FALSE;
+ }
+
value = (byte)value_int;
if ((value & 0xc0) == 0xc0) /* this is a repeat count byte */
{
count = value & 0x3f; /* extract repeat count from byte */
+
if ((value_int = fgetc(file)) == EOF)
+ {
+ free(row_buffer);
return FALSE;
+ }
+
value = (byte)value_int;
}
else
bitmap_ptr += image->bytes_per_row;
}
+ free(row_buffer);
+
return TRUE;
}
if (!setup.toons)
return;
+ /* this may happen after reloading graphics and redefining "num_toons" */
+ if (toon_nr >= screen_info.num_toons)
+ anim_restart = TRUE;
+
switch(mode)
{
case ANIM_START:
toon_nr = SimpleRND(screen_info.num_toons);
}
- anim_restart = reset_delay = AnimateToon(toon_nr,anim_restart);
+ anim_restart = reset_delay = AnimateToon(toon_nr, anim_restart);
}
void InitAnimation()
if (is_daemon)
{
/* become a daemon, breaking all ties with the controlling terminal */
- options.verbose = 0;
+ options.verbose = FALSE;
for (i=0; i<255; i++)
{
if (i != lfd)