From: Mikko Rasa Date: Sat, 26 Jan 2013 20:27:57 +0000 (+0200) Subject: Fix the arrow while picking a position for a train X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=143b27eca71cb6d3659c177fa4946e8c3545aec4;p=r2c2.git Fix the arrow while picking a position for a train --- diff --git a/arrow.mesh b/arrow.mesh index e24b5df..8433feb 100644 --- a/arrow.mesh +++ b/arrow.mesh @@ -1,4 +1,4 @@ -vertices COLOR4UB VERTEX2 +vertices COLOR4_UBYTE VERTEX2 { color4 1.0 1.0 1.0 1.0; vertex2 0.08 0.00; diff --git a/source/engineer/engineer.cpp b/source/engineer/engineer.cpp index c396b5e..e5381bd 100644 --- a/source/engineer/engineer.cpp +++ b/source/engineer/engineer.cpp @@ -224,6 +224,7 @@ void Engineer::tick() if(picking && picking_track && picking_entry>=0) { + camera.apply(); GL::MatrixStack::Push push_mat(GL::MatrixStack::modelview()); float rot = picking_track->get_endpoint_direction(picking_entry);