- int cnt = g_FuncTable.m_pfnGetEntityCount();
-
- for(int i = 0; i < cnt; i++)
- {
- void* ent = g_FuncTable.m_pfnGetEntityHandle(i);
-
- for(epair_t* epList = *g_FuncTable.m_pfnGetEntityKeyValList(ent); epList; epList= epList->next)
- {
- if(!stricmp("classname", epList->key))
- {
- if(!strcmp(epList->value, "team_CTF_redplayer"))
- sprintf(epList->value, "team_CTF_blueplayer");
- else if(!strcmp(epList->value, "team_CTF_blueplayer"))
- sprintf(epList->value, "team_CTF_redplayer");
-
- if(!strcmp(epList->value, "team_CTF_redspawn"))
- sprintf(epList->value, "team_CTF_bluespawn");
- else if(!strcmp(epList->value, "team_CTF_bluespawn"))
- sprintf(epList->value, "team_CTF_redspawn");
-
- if(!strcmp(epList->value, "team_CTF_redflag"))
- sprintf(epList->value, "team_CTF_blueflag");
- else if(!strcmp(epList->value, "team_CTF_blueflag"))
- sprintf(epList->value, "team_CTF_redflag")
- ;
- if(!strcmp(epList->value, "team_redobelisk"))
- sprintf(epList->value, "team_blueobelisk");
- else if(!strcmp(epList->value, "team_blueobelisk"))
- sprintf(epList->value, "team_redobelisk");
- }
- }
- }
+ int cnt = g_FuncTable.m_pfnGetEntityCount();
+
+ for (int i = 0; i < cnt; i++) {
+ void *ent = g_FuncTable.m_pfnGetEntityHandle(i);
+
+ for (epair_t *epList = *g_FuncTable.m_pfnGetEntityKeyValList(ent); epList; epList = epList->next) {
+ if (!stricmp("classname", epList->key)) {
+ if (!strcmp(epList->value, "team_CTF_redplayer")) {
+ sprintf(epList->value, "team_CTF_blueplayer");
+ } else if (!strcmp(epList->value, "team_CTF_blueplayer")) {
+ sprintf(epList->value, "team_CTF_redplayer");
+ }
+
+ if (!strcmp(epList->value, "team_CTF_redspawn")) {
+ sprintf(epList->value, "team_CTF_bluespawn");
+ } else if (!strcmp(epList->value, "team_CTF_bluespawn")) {
+ sprintf(epList->value, "team_CTF_redspawn");
+ }
+
+ if (!strcmp(epList->value, "team_CTF_redflag")) {
+ sprintf(epList->value, "team_CTF_blueflag");
+ } else if (!strcmp(epList->value, "team_CTF_blueflag")) {
+ sprintf(epList->value, "team_CTF_redflag");
+ }
+ if (!strcmp(epList->value, "team_redobelisk")) {
+ sprintf(epList->value, "team_blueobelisk");
+ } else if (!strcmp(epList->value, "team_blueobelisk")) {
+ sprintf(epList->value, "team_redobelisk");
+ }
+ }
+ }
+ }