projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Let Tux bounce off badguys when he's invincible. This let's us bounce off guys like...
[supertux.git]
/
src
/
gameconfig.cpp
diff --git
a/src/gameconfig.cpp
b/src/gameconfig.cpp
index
a3de325
..
c2d1431
100644
(file)
--- a/
src/gameconfig.cpp
+++ b/
src/gameconfig.cpp
@@
-40,9
+40,12
@@
Config::Config()
sound_enabled = true;
music_enabled = true;
cheats_enabled = false;
sound_enabled = true;
music_enabled = true;
cheats_enabled = false;
+ random_seed = 0; // set by time(), by default (unless in config)
screenwidth = 800;
screenheight = 600;
screenwidth = 800;
screenheight = 600;
+
+ enable_script_debugger = false;
}
Config::~Config()
}
Config::~Config()
@@
-60,6
+63,7
@@
Config::load()
config_lisp->get("show_fps", show_fps);
config_lisp->get("cheats", cheats_enabled);
config_lisp->get("show_fps", show_fps);
config_lisp->get("cheats", cheats_enabled);
+ config_lisp->get("random_seed", random_seed);
const lisp::Lisp* config_video_lisp = config_lisp->get_lisp("video");
if(config_video_lisp) {
const lisp::Lisp* config_video_lisp = config_lisp->get_lisp("video");
if(config_video_lisp) {