MCPcopy Create free account
hub / github.com/ddnet/ddnet / Update

Method Update

src/game/mapbugs.cpp:75–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75EMapBugUpdate 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
99void CMapBugs::Dump() const
100{

Callers 3

ExtractDemoChatFunction · 0.45
mainFunction · 0.45
TESTFunction · 0.45

Calls 1

BugToFlagFunction · 0.85

Tested by 1

TESTFunction · 0.36