From 6dd3d36c4552565756dcedab2ddd44e90a553252 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 19 Jun 2008 02:06:10 +0000 Subject: [FIX] Validation works in Pokémodr [FIX] Macros moved to their own file [FIX] Macros for subclasses added [FIX] Key shortcuts added to context menu items [FIX] Rules had a redundant field MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@212 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemod/Tile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pokemod/Tile.cpp') diff --git a/pokemod/Tile.cpp b/pokemod/Tile.cpp index 4ddb2632..d616dd21 100644 --- a/pokemod/Tile.cpp +++ b/pokemod/Tile.cpp @@ -19,11 +19,9 @@ #include "Tile.h" // Pokemod includes +#include "Macros.h" #include "Pokemod.h" -// Qt includes -#include - Pokemod::Tile::Tile(const Tile& tile) : Object("Tile", tile.parent(), tile.id()) { @@ -54,9 +52,11 @@ Pokemod::Tile::Tile(const QDomElement& xml, const Pokemod* parent, const int id) void Pokemod::Tile::validate() { + TEST_BEGIN(); if (m_name.isEmpty()) emit(error("Name is empty")); TEST(setSprite, sprite); + TEST_END(); } void Pokemod::Tile::load(const QDomElement& xml, int id) -- cgit