gaydar: handle soul-less creatures and fix spacing

develop
lethosor 2016-03-04 17:54:32 -05:00
parent 12044852cc
commit 4b07a6001e
1 changed files with 3 additions and 3 deletions

@ -73,11 +73,11 @@ function getSexString(sex)
end
local function determineorientation(unit)
if unit.sex~=-1 then
if unit.sex~=-1 and unit.status.current_soul then
local return_string=''
local orientation=unit.status.current_soul.orientation_flags
if orientation.indeterminate then
return 'indeterminate (probably adventurer)'
return ' indeterminate (probably adventurer)'
end
local male_interested,asexual=false,true
if orientation.romance_male then
@ -109,7 +109,7 @@ local function determineorientation(unit)
end
return return_string
else
return "is not biologically capable of sex"
return " is not biologically capable of sex"
end
end