| 590 | } |
| 591 | |
| 592 | void loadnotexture(char *c) |
| 593 | { |
| 594 | noworldtexture = notexture; // reset to default |
| 595 | *mapconfigdata.notexturename = '\0'; |
| 596 | if(c[0]) |
| 597 | { |
| 598 | checktexturefilename(c); |
| 599 | filtertext(mapconfigdata.notexturename, c, FTXT__MEDIAFILEPATH); |
| 600 | defformatstring(p)("packages/textures/%s", mapconfigdata.notexturename); |
| 601 | noworldtexture = textureload(p); |
| 602 | if(noworldtexture==notexture) { conoutf("could not load alternative texture '%s'.", p); flagmapconfigerror(LWW_CONFIGERR * 8); scripterr(); } |
| 603 | } |
| 604 | flagmapconfigchange(); |
| 605 | } |
| 606 | |
| 607 | COMMAND(loadnotexture, "s"); |
| 608 | COMMANDF(getnotexture, "", () { result(mapconfigdata.notexturename); }); |
nothing calls this directly
no test coverage detected