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/MapWarp.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pokemod/MapWarp.cpp') diff --git a/pokemod/MapWarp.cpp b/pokemod/MapWarp.cpp index 3e3677b7..e3f1f090 100644 --- a/pokemod/MapWarp.cpp +++ b/pokemod/MapWarp.cpp @@ -19,6 +19,7 @@ #include "MapWarp.h" // Pokemod includes +#include "Macros.h" #include "Map.h" #include "Pokemod.h" @@ -55,11 +56,13 @@ Pokemod::MapWarp::MapWarp(const QDomElement& xml, const Map* parent, const int i void Pokemod::MapWarp::validate() { + TEST_BEGIN(); if (m_name.isEmpty()) emit(error("Name is empty")); TEST(setType, type); TEST(setToMap, toMap); TEST(setToWarp, toWarp); + TEST_END(); } void Pokemod::MapWarp::load(const QDomElement& xml, int id) -- cgit