From 143b27eca71cb6d3659c177fa4946e8c3545aec4 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 26 Jan 2013 22:27:57 +0200 Subject: [PATCH] Fix the arrow while picking a position for a train --- arrow.mesh | 2 +- source/engineer/engineer.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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); -- 2.45.2