]> git.localhorst.tv Git - blank.git/blobdiff - src/ui/ui.cpp
save a little bandwidth
[blank.git] / src / ui / ui.cpp
index bd529d555aab44fb972429029089815c4a480fa2..5f60d4401d056e116422b72941965217cd26edce 100644 (file)
@@ -98,7 +98,6 @@ void PlayerController::UpdatePlayer() noexcept {
                if (aim_world && aim_entity) {
                        // got both, pick the closest one
                        if (aim_world.depth < aim_entity.depth) {
-                               // FIXME: somehow this can get stuck on an entity?
                                aim_entity = EntityCollision();
                        } else {
                                aim_world = WorldCollision();
@@ -296,7 +295,7 @@ HUD::HUD(Environment &env, Config &config, const Player &player)
        buf.indices = std::vector<PrimitiveMesh::Index>({
                0, 1, 2, 3
        });
-       buf.colors.resize(4, { 10.0f, 10.0f, 10.0f, 1.0f });
+       buf.colors.resize(4, { 255, 255, 255, 255 });
        crosshair.Update(buf);
 }