Merge pull request #5748 from FlattestGuitar/cluwnefix

Fixes clowns getting their old name in the assasinate objective :v
This commit is contained in:
Fox McCloud
2016-10-09 11:54:40 -04:00
committed by GitHub
+1 -2
View File
@@ -510,10 +510,9 @@ var/list/intents = list(I_HELP,I_DISARM,I_GRAB,I_HARM)
search_pda = 0
//Fixes renames not being reflected in objective text
var/list/O = subtypesof(/datum/objective)
var/length
var/pos
for(var/datum/objective/objective in O)
for(var/datum/objective/objective in all_objectives)
if(objective.target != mind) continue
length = lentext(oldname)
pos = findtextEx(objective.explanation_text, oldname)