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>2007-10-28 09:19:35 +0000
committerStijn Buys <ingar@osirion.org>2007-10-28 09:19:35 +0000
commit09789179cd77ce2f626fffbc94a90ec8784b76df (patch)
treeea265dc9b338fc9673d55f7db0623fe4b2aa5824 /src/client/shipdrawer.cc
parent795ec263875665e530458c7d95a1fb0242d55f8f (diff)
game::Ship interface changes
Diffstat (limited to 'src/client/shipdrawer.cc')
-rw-r--r--src/client/shipdrawer.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/shipdrawer.cc b/src/client/shipdrawer.cc
index de8dee0..09f95b1 100644
--- a/src/client/shipdrawer.cc
+++ b/src/client/shipdrawer.cc
@@ -38,7 +38,7 @@ void ShipDrawer::draw(float elapsed)
{
gl::push();
- rotate(ship->yaw, 0.0f, 1.0f, 0.0f );
+ rotate(ship->yaw(), 0.0f, 1.0f, 0.0f );
Vector3f tl(0.25, 0.125, 0.125);
Vector3f br(-0.25, -0.125, -0.125);
@@ -67,14 +67,14 @@ void ShipDrawer::draw(float elapsed)
cockpit.bottomcolor = engine1.bottomcolor;
cockpit.draw();
- if(ship->thrust > 0 ) {
+ if(ship->thrust() > 0 ) {
color(1.0f,0 ,0 );
begin(Lines);
vertex(-0.5f, 0, 0.185);
- vertex(-0.5f-0.25f*ship->thrust, 0, 0.185);
+ vertex(-0.5f-0.25f*ship->thrust(), 0, 0.185);
vertex(-0.5f, 0, -0.185f);
- vertex(-0.5f-0.25f*ship->thrust, 0, -0.185f);
+ vertex(-0.5f-0.25f*ship->thrust(), 0, -0.185f);
end();
}