~z-man/armagetronad/0.4-armagetronad-ct-unified

« back to all changes in this revision

Viewing changes to src/tools/tCallback.cpp

  • Committer: Voodoo
  • Date: 2011-12-22 16:07:45 UTC
  • Revision ID: erollet@yahoo.fr-20111222160745-o5p79fchl3e0dwk5
merge -r 1186..1363 lp:armagetronad

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
}
43
43
 
44
44
 
45
 
#ifdef ENABLE_SCRIPTING
46
 
 
47
 
tCallbackScripting::tCallbackScripting(tCallbackScripting *& anchor)
48
 
        :tListItem<tCallbackScripting>(anchor), block(tScripting::GetInstance().GetProcRef(""))
49
 
{
50
 
}
51
 
 
52
 
void tCallbackScripting::Exec(tCallbackScripting *anchor) {
53
 
    if (anchor) {
54
 
        tScripting::GetInstance().Exec(anchor->block, NULL);
55
 
        Exec(anchor->Next());
56
 
    }
57
 
}
58
 
 
59
 
#endif // ENABLE_SCRIPTING
60
 
 
61
45
tCallbackAnd::tCallbackAnd(tCallbackAnd*& anchor, BOOLRETFUNC *f)
62
46
        :tListItem<tCallbackAnd>(anchor), func(f){
63
47
    tASSERT(f);