changeset 1372:71d077d39236

Do not set alch_testing to 0 in some places, this is not "concurrency-safe".
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 26 Mar 2011 20:05:46 +0200
parents bacbc8e248a5
children 424d6a3f14f5
files gm-alchemist.tf
diffstat 1 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/gm-alchemist.tf	Sat Mar 26 19:52:50 2011 +0200
+++ b/gm-alchemist.tf	Sat Mar 26 20:05:46 2011 +0200
@@ -229,20 +229,17 @@
 	/let _match=$[replace(" ","_",{P1})]%;\
 	/if (galch_update(strcat("?", _match)))\
 		/msq Added near-match '%{_match}' (%{alch_mineral}, %{alch_organ}, %{alch_herb}) to database.%;\
-	/endif%;\
-	/set alch_testing=0
+	/endif
 
 /gdef -i -F -aCgreen -mregexp -t"^Flask '([a-z_ -]+)' accepted\." galch_submit_match =\
 	/set alch_close=1%;\
 	/let _match=$[replace(" ","_",{P1})]%;\
 	/if (galch_update(strcat("!", _match)))\
 		/msq Added MATCH '%{_match}' (%{alch_mineral}, %{alch_organ}, %{alch_herb}) to database.%;\
-	/endif%;\
-	/set alch_testing=0
+	/endif
 
 /gdef -i -F -aBCred -msimple -t"You've already researched that flask." galch_submit_already =\
-	/set alch_close=1%;\
-	/set alch_testing=0
+	/set alch_close=1
 
 
 ;; Store organ into proper can