From 086b01321c26cf5c20c57c46b0c245273bd84399 Mon Sep 17 00:00:00 2001 From: yangxiao Date: Wed, 24 Jun 2015 14:10:38 +0800 Subject: [PATCH] code simplify --- cocos/3d/CCTerrain.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/cocos/3d/CCTerrain.cpp b/cocos/3d/CCTerrain.cpp index 5017827a70..32a466aaa5 100644 --- a/cocos/3d/CCTerrain.cpp +++ b/cocos/3d/CCTerrain.cpp @@ -1278,14 +1278,8 @@ bool Terrain::Chunk::getInsterctPointWithRay(const Ray& ray, Vec3 &interscetPoin isFind =true; } } - if (isFind) - { - return true; - } - else - { - return false; - } + + return isFind; } void Terrain::Chunk::updateVerticesForLOD()