Xonotic
loader.qc File Reference
#include "loader.qh"
#include <common/mapinfo.qh>
#include <common/mutators/base.qh>
#include <common/stats.qh>
#include <common/weapons/_all.qh>
+ Include dependency graph for loader.qc:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

 STATIC_INIT_LATE (Gametype)
 

Function Documentation

◆ STATIC_INIT_LATE()

STATIC_INIT_LATE ( Gametype  )

Definition at line 8 of file loader.qc.

References car(), cdr(), FOREACH, and MapInfo_CurrentGametype().

8  {
10  if (g) {
11  for (string _s = g.m_mutators; _s != ""; _s = cdr(_s)) {
12  string s = car(_s);
13  FOREACH(Mutators, it.m_name == s, { Mutator_Add(it); break; });
14  }
15  }
16 }
ERASEABLE string cdr(string s)
returns all but first word
Definition: string.qh:249
ERASEABLE string car(string s)
returns first word
Definition: string.qh:240
Gametype MapInfo_CurrentGametype()
Definition: mapinfo.qc:1150
#define FOREACH(list, cond, body)
Definition: iter.qh:19
+ Here is the call graph for this function: