Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-02-16 12:22:33 +0000
committerStijn Buys <ingar@osirion.org>2008-02-16 12:22:33 +0000
commitd6ee7ec642cc6b3097c8d321a1a00630e24027d1 (patch)
tree35f56e5168cc3e12724898b9efb81b4b2938f575 /src/client/view.cc
parent715d0c3952a3a1d59b64074e472d0a9a3b414351 (diff)
initial client-to-server connection
Diffstat (limited to 'src/client/view.cc')
-rw-r--r--src/client/view.cc8
1 files changed, 4 insertions, 4 deletions
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