Author: mordante
Date: Mon Aug 18 18:29:44 2008
New Revision: 28720

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28720&view=rev
Log:
Removed the double initialization of max_loop_ and flat_ in the constructors as
Sapient discovered.

Modified:
    trunk/src/terrain_filter.cpp

Modified: trunk/src/terrain_filter.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/terrain_filter.cpp?rev=28720&r1=28719&r2=28720&view=diff
==============================================================================
--- trunk/src/terrain_filter.cpp (original)
+++ trunk/src/terrain_filter.cpp Mon Aug 18 18:29:44 2008
@@ -55,8 +55,6 @@
        max_loop_(max_loop),
        flat_(flat_tod)
 {
-       restrict(max_loop);
-       flatten(flat_tod);
 }
 
 terrain_filter::terrain_filter(const vconfig& cfg, const terrain_filter& 
original) :
@@ -68,8 +66,6 @@
        max_loop_(original.max_loop_),
        flat_(original.flat_)
 {
-       restrict(original.max_loop_);
-       flatten(original.flat_);
 }
 
 terrain_filter::terrain_filter(const terrain_filter& other) :
@@ -83,8 +79,6 @@
        max_loop_(other.max_loop_),
        flat_(other.flat_)
 {
-       restrict(other.max_loop_);
-       flatten(other.flat_);
 }
 
 terrain_filter& terrain_filter::operator=(const terrain_filter& other)


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

Reply via email to