| 73 | } |
| 74 | |
| 75 | EMapBugUpdate CMapBugs::Update(const char *pBug) |
| 76 | { |
| 77 | CMapBugsInternal *pInternal = (CMapBugsInternal *)m_pData; |
| 78 | int Bug = -1; |
| 79 | if(false) {} |
| 80 | #define MAPBUG(constname, string) \ |
| 81 | else if(str_comp(pBug, string) == 0) \ |
| 82 | { \ |
| 83 | Bug = (constname); \ |
| 84 | } |
| 85 | #include "mapbugs_list.h" |
| 86 | #undef MAPBUG |
| 87 | if(Bug == -1) |
| 88 | { |
| 89 | return EMapBugUpdate::NOTFOUND; |
| 90 | } |
| 91 | if(pInternal) |
| 92 | { |
| 93 | return EMapBugUpdate::OVERRIDDEN; |
| 94 | } |
| 95 | m_Extra |= BugToFlag(Bug); |
| 96 | return EMapBugUpdate::OK; |
| 97 | } |
| 98 | |
| 99 | void CMapBugs::Dump() const |
| 100 | { |