Author: oracle
Date: Fri Jun 20 00:16:56 2008
New Revision: 27331
URL: http://svn.gna.org/viewcvs/wesnoth?rev=27331&view=rev
Log:
A variable, "restricted", now reflects the executing environment.
Modified:
trunk/data/ais/safe.py
Modified: trunk/data/ais/safe.py
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/ais/safe.py?rev=27331&r1=27330&r2=27331&view=diff
==============================================================================
--- trunk/data/ais/safe.py (original)
+++ trunk/data/ais/safe.py Fri Jun 20 00:16:56 2008
@@ -137,6 +137,8 @@
# Wrapper allowing safe_exec to be dynamically controlled
# from wesnoth binary.
def safe_exec( code, context=None, runSafe=True ):
+ # Allow the AI to know if it is restricted or not
+ context["restricted"] = runSafe
if runSafe:
safe_exec_op( code, context )
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits