From 09789179cd77ce2f626fffbc94a90ec8784b76df Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 28 Oct 2007 09:19:35 +0000 Subject: game::Ship interface changes --- src/client/shipdrawer.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/client/shipdrawer.cc') 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(); } -- cgit v1.2.3