MCPcopy Create free account
hub / github.com/demoth/jake2 / InlineModel

Method InlineModel

qcommon/src/main/java/jake2/qcommon/CM.java:769–779  ·  view source on GitHub ↗

Returns the model with a given id " " +

(String name)

Source from the content-addressed store, hash-verified

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;

Callers 4

PrepRefreshMethod · 0.80
ParseConfigStringMethod · 0.80
PF_setmodelMethod · 0.80
GameImportsImplMethod · 0.80

Calls 2

ErrorMethod · 0.95
atoiMethod · 0.95

Tested by

no test coverage detected