| 206 | } |
| 207 | |
| 208 | int str2mapopt(const char *s) // from resource string |
| 209 | { |
| 210 | if (!strcmp(s, "grid")) return D_GRID; |
| 211 | if (!strcmp(s, "slime")) return D_SLIME; |
| 212 | if (!strcmp(s, "desert")) return D_DESERT; |
| 213 | if (!strcmp(s, "jungle")) return D_JUNGLE; |
| 214 | if (!strcmp(s, "igloo")) return D_IGLOO; |
| 215 | if (!strcmp(s, "hut")) return D_HUT; |
| 216 | if (!strcmp(s, "village")) return D_VILLAGE; |
| 217 | if (!strcmp(s, "mansion")) return D_MANSION; |
| 218 | if (!strcmp(s, "monument")) return D_MONUMENT; |
| 219 | if (!strcmp(s, "ruins")) return D_OCEANRUIN; |
| 220 | if (!strcmp(s, "shipwreck")) return D_SHIPWRECK; |
| 221 | if (!strcmp(s, "treasure")) return D_TREASURE; |
| 222 | if (!strcmp(s, "mineshaft")) return D_MINESHAFT; |
| 223 | if (!strcmp(s, "well")) return D_WELL; |
| 224 | if (!strcmp(s, "geode")) return D_GEODE; |
| 225 | if (!strcmp(s, "outpost")) return D_OUTPOST; |
| 226 | if (!strcmp(s, "ancient_city")) return D_ANCIENTCITY; |
| 227 | if (!strcmp(s, "trails")) return D_TRAILRUINS; |
| 228 | if (!strcmp(s, "chambers")) return D_CHAMBERS; |
| 229 | if (!strcmp(s, "portal")) return D_PORTAL; |
| 230 | if (!strcmp(s, "portaln")) return D_PORTALN; |
| 231 | if (!strcmp(s, "spawn")) return D_SPAWN; |
| 232 | if (!strcmp(s, "stronghold")) return D_STRONGHOLD; |
| 233 | if (!strcmp(s, "fortress")) return D_FORTESS; |
| 234 | if (!strcmp(s, "bastion")) return D_BASTION; |
| 235 | if (!strcmp(s, "endcity")) return D_ENDCITY; |
| 236 | if (!strcmp(s, "gateway")) return D_GATEWAY; |
| 237 | return D_NONE; |
| 238 | } |
| 239 | |
| 240 | int mapopt2stype(int opt) |
| 241 | { |
nothing calls this directly
no outgoing calls
no test coverage detected