diff options
author | Stijn Buys <ingar@osirion.org> | 2007-10-28 09:19:35 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2007-10-28 09:19:35 +0000 |
commit | 09789179cd77ce2f626fffbc94a90ec8784b76df (patch) | |
tree | ea265dc9b338fc9673d55f7db0623fe4b2aa5824 /src/client/shipdrawer.cc | |
parent | 795ec263875665e530458c7d95a1fb0242d55f8f (diff) |
game::Ship interface changes
Diffstat (limited to 'src/client/shipdrawer.cc')
-rw-r--r-- | src/client/shipdrawer.cc | 8 |
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(); } |