| 223 | struct tempmmslot { mapmodelinfo m; vector<int> oldslot; bool used; }; |
| 224 | |
| 225 | int tempmmcmp(tempmmslot *a, tempmmslot *b) |
| 226 | { |
| 227 | int n = strcmp(a->m.name, b->m.name); |
| 228 | if(n) return n; |
| 229 | if(a->m.rad != b->m.rad) return a->m.rad - b->m.rad; |
| 230 | if(a->m.h != b->m.h) return a->m.h - b->m.h; |
| 231 | if(a->m.zoff != b->m.zoff) return a->m.zoff - b->m.zoff; |
| 232 | if(a->m.scale != b->m.scale) return int((a->m.scale - b->m.scale) * 1e6); |
| 233 | return 0; |
| 234 | } |
| 235 | |
| 236 | int tempmmsort(tempmmslot *a, tempmmslot *b) |
| 237 | { |
no outgoing calls
no test coverage detected