Author: oracle
Date: Mon Jun 30 15:52:59 2008
New Revision: 27613
URL: http://svn.gna.org/viewcvs/wesnoth?rev=27613&view=rev
Log:
Added comment to python_ai::get_available_scripts to reflect
new UNSAFE changes.
Modified:
trunk/src/ai_python.cpp
Modified: trunk/src/ai_python.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai_python.cpp?rev=27613&r1=27612&r2=27613&view=diff
==============================================================================
--- trunk/src/ai_python.cpp (original)
+++ trunk/src/ai_python.cpp Mon Jun 30 15:52:59 2008
@@ -2066,6 +2066,8 @@
// Finds all python AI scripts available in the current binary path.
// They have to end with .py, and have #!WPY as first line.
+// If preferences allow for unsafe python AIs, then also look for
+// the #!UNSAFE_WPY tag.
std::vector<std::string> python_ai::get_available_scripts()
{
int allow_unsafe = !preferences::run_safe_python() ;
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits