Screwing around with some settings

This commit is contained in:
Kayne Ruse
2014-06-02 20:02:19 +10:00
parent 4acd350219
commit d2f03b98dc
7 changed files with 22 additions and 15 deletions
+5 -1
View File
@@ -51,7 +51,11 @@ void ClientApplication::Init(int argc, char** argv) {
if (SDL_Init(SDL_INIT_VIDEO)) {
throw(std::runtime_error("Failed to initialize SDL"));
}
BaseScene::SetScreen(config.Int("screen.w"), config.Int("screen.h"), 0, (config.Bool("screen.f")) ? SDL_HWSURFACE|SDL_DOUBLEBUF|SDL_FULLSCREEN : SDL_HWSURFACE|SDL_DOUBLEBUF);
int w = config.Int("client.screen.w");
int h = config.Int("client.screen.h");
int f = config.Bool("client.screen.f") ? SDL_HWSURFACE|SDL_DOUBLEBUF|SDL_FULLSCREEN : SDL_HWSURFACE|SDL_DOUBLEBUF;
BaseScene::SetScreen(w ? w : 800, h ? h : 600, 0, f);
//initialize SDL_net
if (SDLNet_Init()) {
+1
View File
@@ -29,6 +29,7 @@
#include "raster_font.hpp"
#include "button.hpp"
//TODO: The options screen needs to be USED
class OptionsMenu : public BaseScene {
public:
//Public access members
+4
View File
@@ -89,6 +89,10 @@ void Restart::Update(double delta) {
if (std::chrono::steady_clock::now() - startTick > std::chrono::duration<int>(10)) {
QuitEvent();
}
while(network.Receive()) {
//EAT INCOMING PACKETS
}
}
void Restart::RenderFrame() {