Difference for plugins/cfpython/cfpython.c from version 1.20 to 1.21


version 1.20 version 1.21
Line 670
 
Line 670
 static int do_script(CFPContext* context,int silent)  static int do_script(CFPContext* context,int silent)
 {  {
     FILE*   scriptfile;      FILE*   scriptfile;
     PyObject* built;  
     PyObject* dict;      PyObject* dict;
     PyObject* ret;      PyObject* ret;
 #if 0  #if 0
Line 687
 
Line 686
     }      }
     pushContext(context);      pushContext(context);
     dict = PyDict_New();      dict = PyDict_New();
     built = PyEval_GetBuiltins();      PyDict_SetItemString(dict, "__builtins__", PyEval_GetBuiltins());
     PyDict_SetItemString(dict, "__builtins__", built);  
     Py_XDECREF(built);  
     ret = PyRun_File(scriptfile, context->script, Py_file_input, dict, dict);      ret = PyRun_File(scriptfile, context->script, Py_file_input, dict, dict);
     if (PyErr_Occurred())      if (PyErr_Occurred())
     {      {
Line 823
 
Line 820
     context->message[0]=0;      context->message[0]=0;
   
     context->who         = Crossfire_Object_wrap(op);      context->who         = Crossfire_Object_wrap(op);
       context->activator   = NULL;
       context->third       = NULL;
     context->fix         = 0;      context->fix         = 0;
     snprintf(context->script, sizeof(context->script), "%s", buf);      snprintf(context->script, sizeof(context->script), "%s", buf);
     snprintf(context->options, sizeof(context->options), "%s", params);      snprintf(context->options, sizeof(context->options), "%s", params);


Legend:
line(s) removed in v.1.20 
line(s) changed
 line(s) added in v.1.21

File made using version 1.98 of cvs2html by leaf at 2011-07-21 16:59