fix dbg code

This commit is contained in:
cxgeorge 2001-07-26 01:25:59 +00:00
parent a6de4d64f4
commit 6e8568655d

View File

@ -114,7 +114,7 @@ compute_child(const LPoint3f &cam_pos, const LPoint3f &center) const {
// since lowest level LOD is lev 0, must invert the meaning of // since lowest level LOD is lev 0, must invert the meaning of
// so minimum_LOD_number 0 will screen out no LODs, and increasing it // so minimum_LOD_number 0 will screen out no LODs, and increasing it
// will screen out successively higher levels // will screen out successively higher levels
int max_allowed_LOD_number = (_switch_vector.size()-1) - minimum_LOD_number; int max_allowed_LOD_number = _switch_vector.size() - minimum_LOD_number;
if(child > max_allowed_LOD_number) { if(child > max_allowed_LOD_number) {
child = max_allowed_LOD_number; child = max_allowed_LOD_number;
} }