From 8b171e3a7e006aa492e2369969999a2336e2a731 Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Sat, 17 Jan 2009 16:21:58 +0100 Subject: Made script error reports more informative and readable --- src/scripting/script.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/scripting/script.hpp') diff --git a/src/scripting/script.hpp b/src/scripting/script.hpp index fad6ad95..c87bf182 100644 --- a/src/scripting/script.hpp +++ b/src/scripting/script.hpp @@ -68,7 +68,7 @@ class Script * Loads a text file into script context and executes its global * statements. */ - virtual void loadFile(std::string const &); + virtual bool loadFile(std::string const &); /** * Loads a chunk of text and considers it as an NPC handler. This @@ -129,6 +129,9 @@ class Script virtual void processDeathEvent(Being* thing) = 0; + protected: + std::string mScriptFile; + private: MapComposite *mMap; EventListener mEventListener; /**< Tracking of being deaths. */ -- cgit v1.2.3-70-g09d2