Skip to content

Commit

Permalink
tweak to Species::Print() for the workshop
Browse files Browse the repository at this point in the history
  • Loading branch information
bhaller committed Dec 17, 2023
1 parent a5b08bc commit b7dcd6a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/species_eidos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1444,7 +1444,11 @@ const EidosClass *Species::Class(void) const

void Species::Print(std::ostream &p_ostream) const
{
p_ostream << Class()->ClassName() << "<" << species_id_ << ":" << avatar_ << ">";
// Show the avatar in multispecies models (or any explicit species model)
if (community_.is_explicit_species_)
p_ostream << Class()->ClassName() << "<" << species_id_ << ":" << avatar_ << ">";
else
p_ostream << Class()->ClassName() << "<" << species_id_ << ">";
}

EidosValue_SP Species::GetProperty(EidosGlobalStringID p_property_id)
Expand Down

0 comments on commit b7dcd6a

Please sign in to comment.