Loads entity strings.
(lump_t l)
| 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) { |
no test coverage detected