Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/client.cc')
-rw-r--r--src/client/client.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/client/client.cc b/src/client/client.cc
index df56700..24059a5 100644
--- a/src/client/client.cc
+++ b/src/client/client.cc
@@ -7,8 +7,9 @@
#include <SDL/SDL.h>
#include <iostream>
-#include <cmath>
#include <iomanip>
+#include <cmath>
+#include <cstdlib>
#include "audio/audio.h"
#include "audio/sources.h"
@@ -150,6 +151,10 @@ void Client::run()
{
con_print << "^BRunning client..." << std::endl;
+ // seed random generator
+ unsigned int seed = (unsigned int) SDL_GetTicks();
+ srandom(seed);
+
// default framerate 125fps, 8 milliseconds
Uint32 client_frame_lenght = 8;
@@ -376,6 +381,8 @@ void Client::func_snd_restart(std::string const &args)
void Client::func_r_restart(std::string const &args)
{
video::restart();
+ video::set_loader_message();
+ video::frame_loader();
}
/* ---- func_ui ---------------------------------------------------- */