MCPcopy Index your code
hub / github.com/assaultcube/AC / mapmodelregister_

Function mapmodelregister_

source/src/rendermodel.cpp:339–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339void mapmodelregister_(char **args, int numargs) // read model attributes without loading the model
340{
341 mapmodelattributes ma;
342 if(numargs > 0) // need a name at least
343 {
344 defformatstring(p)("%s%s", mmpath, args[0]);
345 loopirev(--numargs < MMA_NUM ? numargs : MMA_NUM) ma.n[i] = *args[i + 1] ? newstring(args[i + 1]) : NULL;
346 setmodelattributes(p, ma);
347 }
348}
349COMMANDN(mapmodelregister, mapmodelregister_, "v");
350
351void mapmodelregistryclear()

Callers

nothing calls this directly

Calls 3

newstringFunction · 0.85
setmodelattributesFunction · 0.85
loopirevFunction · 0.70

Tested by

no test coverage detected