}
else
{
- printf("Tile not dravable %u\n", c);
+ //printf("Tile not dravable %u\n", c);
}
}
}
}
if (distro_counter <= 0)
- level_change(¤t_level,x, y, TM_IA, tile->next_tile2);
+ level_change(¤t_level,x, y, TM_IA, tile->next_tile);
play_sound(sounds[SND_DISTRO], SOUND_CENTER_SPEAKER);
score = score + SCORE_DISTRO;
use_gl = true;
#endif
-
}
+ else if (strcmp(argv[i], "--sdl") == 0)
+ {
+ use_gl = false;
+ }
else if (strcmp(argv[i], "--usage") == 0)
{
/* Show usage: */
" --fullscreen Run in fullscreen mode.\n"
" --opengl If opengl support was compiled in, this will enable\n"
" the EXPERIMENTAL OpenGL mode.\n"
+ " --sdl Use non-opengl renderer\n"
"\n"
"Sound Options:\n"
" --disable-sound If sound support was compiled in, this will\n"
tile->data = 0;
tile->alpha = 0;
tile->next_tile = 0;
- tile->next_tile2 = 0;
tile->anim_speed = 25;
LispReader reader(lisp_cdr(element));
reader.read_int("alpha", (int*)&tile->alpha);
reader.read_int("anim-speed", &tile->anim_speed);
reader.read_int("next-tile", &tile->next_tile);
- reader.read_int("next-tile2", &tile->next_tile2);
reader.read_string_vector("images", &tile->filenames);
for(std::vector<std::string>::iterator it = tile->filenames.begin();
/** Id of the tile that is going to replace this tile once it has
been collected or jumped at */
int next_tile;
- int next_tile2;
int anim_speed;
unsigned char alpha;