wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src/editor editor_main.cpp


From: Yann Dirson
Subject: [Wesnoth-cvs-commits] wesnoth/src/editor editor_main.cpp
Date: Sat, 09 Apr 2005 10:49:06 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Yann Dirson <address@hidden>    05/04/09 14:49:06

Modified files:
        src/editor     : editor_main.cpp 

Log message:
        intialize the rng for random map generation

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/editor/editor_main.cpp.diff?tr1=1.31&tr2=1.32&r1=text&r2=text

Patches:
Index: wesnoth/src/editor/editor_main.cpp
diff -u wesnoth/src/editor/editor_main.cpp:1.31 
wesnoth/src/editor/editor_main.cpp:1.32
--- wesnoth/src/editor/editor_main.cpp:1.31     Fri Mar 25 18:19:20 2005
+++ wesnoth/src/editor/editor_main.cpp  Sat Apr  9 14:49:05 2005
@@ -23,6 +23,7 @@
 #include "../language.hpp"
 #include "../map.hpp"
 #include "../preferences.hpp"
+#include "../random.hpp"
 #include "../team.hpp"
 #include "../util.hpp"
 #include "../video.hpp"
@@ -40,6 +41,8 @@
 int main(int argc, char** argv)
 {
        game_config::editor = true;
+       rng generator;
+       const set_random_generator generator_setter(&generator);
 
        int arg;
        for(arg = 1; arg != argc; ++arg) {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]