Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix tertiary languages not working #33765

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions code/modules/mob/dead/observer/observer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
sHuman.real_name = real_name
concrete_outfit.equip(sHuman, TRUE)
client?.prefs.copy_to(sHuman)
sHuman.add_language(client?.prefs.language)
sHuman.dna.UpdateSE()
sHuman.dna.UpdateUI()
sHuman.ckey = ckey
Expand Down
3 changes: 1 addition & 2 deletions code/modules/mob/new_player/new_player.dm
Original file line number Diff line number Diff line change
Expand Up @@ -670,8 +670,7 @@
if(prefs.language)
chosen_language = all_languages["[prefs.language]"]
if(chosen_language)
if(chosen_language.flags & WHITELISTED)
new_character.add_language("[prefs.language]")
new_character.add_language("[prefs.language]")
if(ticker.random_players || appearance_isbanned(src)) //disabling ident bans for now
new_character.setGender(pick(MALE, FEMALE))
prefs.real_name = random_name(new_character.gender, new_character.species.name)
Expand Down