Returns the model with a given id " " +
(String name)
| 767 | |
| 768 | /** Returns the model with a given id "*" + <number> */ |
| 769 | public cmodel_t InlineModel(String name) { |
| 770 | if (name == null || name.charAt(0) != '*') |
| 771 | Com.Error(Defines.ERR_DROP, "CM_InlineModel: bad name"); |
| 772 | |
| 773 | int num = Lib.atoi(name.substring(1)); |
| 774 | |
| 775 | if (num < 1 || num >= numcmodels) |
| 776 | Com.Error(Defines.ERR_DROP, "CM_InlineModel: bad number"); |
| 777 | |
| 778 | return map_cmodels[num]; |
| 779 | } |
| 780 | |
| 781 | public int CM_NumClusters() { |
| 782 | return numclusters; |
no test coverage detected