gdb:
@$(MAKE_CMD) TARGET=$(DEFAULT_TARGET) && gdb ./rocksndiamonds
+valgrind:
+ valgrind -v --leak-check=yes ./rocksndiamonds 2> valgrind.out
+
enginetest:
./Scripts/make_enginetest.sh
{ EP_DONT_COLLIDE_WITH, "- deadly when colliding with" },
{ EP_DONT_TOUCH, "- deadly when touching" },
- { EP_INDESTRUCTIBLE, "- undestructible" },
+ { EP_INDESTRUCTIBLE, "- indestructible" },
{ EP_CAN_EXPLODE_BY_FIRE, "- can explode by fire or explosions" },
{ EP_CAN_EXPLODE_SMASHED, "- can explode when smashed" },
{
struct ElementChangeInfo *change = &ei->change_page[i];
+ /* always start with reliable default values */
+ setElementChangeInfoToDefaults(change);
+
change->events = getFile32BitBE(file);
change->target_element = checkLevelElement(getFile16BitBE(file));