| 1083 | COMMAND(deletetextureslot, "iss"); |
| 1084 | |
| 1085 | void edittextureslot(int *n, char *scale, char *name) // edit slot parameters != "" |
| 1086 | { |
| 1087 | string res = ""; |
| 1088 | if(slots.inrange(*n)) |
| 1089 | { |
| 1090 | Slot &s = slots[*n]; |
| 1091 | if((*scale || *name) && !noteditmode("edittextureslot") && !multiplayer("edittextureslot")) |
| 1092 | { // change attributes |
| 1093 | float newscale = atof(scale); |
| 1094 | _texture(s, *scale ? &newscale : NULL, *name ? name : NULL); |
| 1095 | unsavededits++; |
| 1096 | hdr.flags |= MHF_AUTOMAPCONFIG; // requires automapcfg |
| 1097 | } |
| 1098 | formatstring(res)("%s \"%s\"", floatstr(s.orgscale, true), s.name); |
| 1099 | } |
| 1100 | result(res); |
| 1101 | } |
| 1102 | COMMAND(edittextureslot, "iss"); |
| 1103 | |
| 1104 | void gettextureorigin(char *fname) |
nothing calls this directly
no test coverage detected