From f07e8a7e94a587f5ba3653a930827630eb9cbdbf Mon Sep 17 00:00:00 2001 From: frohlich Date: Wed, 11 Mar 2009 05:36:29 +0000 Subject: [PATCH] Avoid casts if there is a method for the apropriate job. Modified Files: src/Main/main.cxx --- src/Main/main.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Main/main.cxx b/src/Main/main.cxx index e5be03776..c0251b13f 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -596,9 +596,9 @@ static void fgMainLoop( void ) { // check for moving or stationary listener (view position) sgdSubVec3( sgdv3_help, - last_listener_pos, (double *)¤t_view->get_view_pos()); + last_listener_pos, current_view->get_view_pos().sg()); sgdAddVec3( last_listener_pos, - sgdv3_null, (double *)¤t_view->get_view_pos()); + sgdv3_null, current_view->get_view_pos().sg()); if ( sgdLengthVec3(sgdv3_help) > 0.2 ) { sgCopyVec3( listener_vel, model_vel ); @@ -611,7 +611,7 @@ static void fgMainLoop( void ) { // set positional offset for sources sgdVec3 dsource_pos_offset; sgdSubVec3( dsource_pos_offset, - (double*) ¤t_view->get_view_pos(), + current_view->get_view_pos().sg(), model_pos.sg() ); SGVec3d sgv_dsource_pos_offset = model_or.rotateBack( surf_or.rotateBack(SGVec3d(dsource_pos_offset[0],