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

Method CMod_LoadEntityString

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

Loads entity strings.

(lump_t l)

Source from the content-addressed store, hash-verified

749
750 /** Loads entity strings. */
751 public void CMod_LoadEntityString(lump_t l) {
752 Com.DPrintf("CMod_LoadEntityString()\n");
753
754 numentitychars = l.filelen;
755
756 if (l.filelen > Defines.MAX_MAP_ENTSTRING)
757 Com.Error(Defines.ERR_DROP, "Map has too large entity lump");
758
759 int x = 0;
760 for (; x < l.filelen && cmod_base[x + l.fileofs] != 0; x++);
761
762 map_entitystring = new String(cmod_base, l.fileofs, x).trim();
763 Com.dprintln("entitystring=" + map_entitystring.length() +
764 " bytes, [" + map_entitystring.substring(0, Math.min (
765 map_entitystring.length(), 15)) + "...]" );
766 }
767
768 /** Returns the model with a given id "*" + <number> */
769 public cmodel_t InlineModel(String name) {

Callers 1

CM_LoadMapMethod · 0.95

Calls 3

DPrintfMethod · 0.95
ErrorMethod · 0.95
dprintlnMethod · 0.95

Tested by

no test coverage detected