OSDN Git Service

自船サイズバグ修正。
authorMandhelingFreak <mandheling30-freak@yahoo.co.jp>
Sun, 9 Mar 2014 11:16:40 +0000 (20:16 +0900)
committerMandhelingFreak <mandheling30-freak@yahoo.co.jp>
Mon, 10 Mar 2014 01:17:14 +0000 (10:17 +0900)
GVONavish/GVONavish/GVORenderer.cpp

index bc4a3e3..396130c 100644 (file)
@@ -310,8 +310,8 @@ void GVORenderer::renderMap( const GVOVector& shipVector, GVOTexture * shipTextu
                ::glLineWidth( 1.0f );
                ::glTranslatef( (float)xDrawOrigin, (float)yDrawOrigin, 0 );
                while ( drawn < m_viewSize.cx ) {
-                       const float x = shipPointOffset.x - shipTexture->width() / 2.0f;
-                       const float y = shipPointOffset.y - shipTexture->height() / 2.0f;
+                       const float x = shipPointOffset.x - shipMarkSize / 2.0f;
+                       const float y = shipPointOffset.y - shipMarkSize / 2.0f;
 
                        ::glEnable( GL_BLEND );
                        ::glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );