Author: ilor
Date: Sat Jul  5 13:25:53 2008
New Revision: 27746

URL: http://svn.gna.org/viewcvs/wesnoth?rev=27746&view=rev
Log:
add get_terrain_string(location) shorthand

Modified:
    trunk/src/map.hpp

Modified: trunk/src/map.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/map.hpp?rev=27746&r1=27745&r2=27746&view=diff
==============================================================================
--- trunk/src/map.hpp (original)
+++ trunk/src/map.hpp Sat Jul  5 13:25:53 2008
@@ -55,7 +55,6 @@
         * Get a formatted terrain name -- terrain (underlying, terrains)
         */
        std::string get_terrain_string(const t_translation::t_terrain& terrain) 
const;
-
 
        //! Throws exception if the map file is not in the correct format.
        struct incorrect_format_exception {
@@ -124,7 +123,8 @@
                { return underlying_def_terrain(get_terrain(loc)); }
        const t_translation::t_list& underlying_union_terrain(const location& 
loc) const
                { return underlying_union_terrain(get_terrain(loc)); }
-
+       std::string get_terrain_string(const location& loc) const
+               { return get_terrain_string(get_terrain(loc)); }
        bool is_village(t_translation::t_terrain terrain) const
                { return get_terrain_info(terrain).is_village(); }
        int gives_healing(t_translation::t_terrain terrain) const


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to