about summary refs log tree commit diff
path: root/src/engine
diff options
context:
space:
mode:
authorJakob Fries <jakob.fries@gmail.com>2007-07-21 15:48:35 +0000
committerJakob Fries <jakob.fries@gmail.com>2007-07-21 15:48:35 +0000
commita622421cf30539352de1f73c886c525ca54b0e1d (patch)
treea6f3b1a932c240ae07c7f50392644facadb00162 /src/engine
parent711ec513e8ca39d0a32798ee4acd23a51f807c38 (diff)
downloadzcatch-a622421cf30539352de1f73c886c525ca54b0e1d.tar.gz
zcatch-a622421cf30539352de1f73c886c525ca54b0e1d.zip
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/client/client.cpp1
-rw-r--r--src/engine/client/gfx.cpp4
2 files changed, 4 insertions, 1 deletions
diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp
index 87158213..80a69f8b 100644
--- a/src/engine/client/client.cpp
+++ b/src/engine/client/client.cpp
@@ -338,6 +338,7 @@ public:
 	
 	void run(netaddr4 *server_address)
 	{
+		local_start_time = time_get();
 		snapshot_part = 0;
 		
 		// init graphics and sound
diff --git a/src/engine/client/gfx.cpp b/src/engine/client/gfx.cpp
index cf9e49fd..481c86b2 100644
--- a/src/engine/client/gfx.cpp
+++ b/src/engine/client/gfx.cpp
@@ -8,6 +8,8 @@
 
 #include <string.h>
 
+#include <engine/config.h>
+
 
 using namespace baselib;
 
@@ -103,7 +105,7 @@ static void draw_quad(bool _bflush = false)
 	
 bool gfx_init(bool fullscreen)
 {
-	if(!context.create(screen_width, screen_height, 24, 8, 16, 0, fullscreen?opengl::context::FLAG_FULLSCREEN:0))
+	if(!context.create(config.screen_width, config.screen_height, 24, 8, 16, 0, fullscreen?opengl::context::FLAG_FULLSCREEN:0))
 	{
 		dbg_msg("game", "failed to create gl context");
 		return false;