From d6ee7ec642cc6b3097c8d321a1a00630e24027d1 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 16 Feb 2008 12:22:33 +0000 Subject: initial client-to-server connection --- src/client/view.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/client/view.cc') diff --git a/src/client/view.cc b/src/client/view.cc index 5c54587..0c8e26b 100644 --- a/src/client/view.cc +++ b/src/client/view.cc @@ -108,8 +108,8 @@ void draw_status() << std::setfill('0') << std::setw(2) << minutes << ":" << std::setfill('0') << std::setw(2) << seconds; - minutes = (int) floorf(core::time() / 60.0f); - seconds = (int) floorf(core::time() - (float) minutes* 60.0f); + minutes = (int) floorf(core::application()->time() / 60.0f); + seconds = (int) floorf(core::application()->time() - (float) minutes* 60.0f); status << " time " << std::setfill('0') << std::setw(2) << minutes << ":" << std::setfill('0') << std::setw(2) << seconds; status << " fps " << std::setw(4) << fps; @@ -137,7 +137,7 @@ void frame(float seconds) // Clear the color and depth buffers. gl::clear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - if (core::connected()) { + if (core::application()->connected()) { // draw the game world // Change to the projection matrix and set our viewing volume. @@ -171,7 +171,7 @@ void frame(float seconds) gl::matrixmode(GL_MODELVIEW); gl::loadidentity(); - if (!core::connected()) { + if (!core::application()->connected()) { // draw the loader bitmap draw_loader(); gl::enable(GL_BLEND); // enable alpha blending -- cgit v1.2.3