Skip to content

Commit

Permalink
- minimalized the interface to the translation tables to a small set …
Browse files Browse the repository at this point in the history
…of functions.

Now the internals can be refactored without affecting all using code.
  • Loading branch information
coelckers committed Apr 11, 2020
1 parent 0a7344e commit 520a960
Show file tree
Hide file tree
Showing 4 changed files with 127 additions and 134 deletions.
2 changes: 1 addition & 1 deletion src/p_setup.cpp
Expand Up @@ -406,7 +406,7 @@ void P_SetupLevel(FLevelLocals *Level, int position, bool newGame)
{
Level->Players[i]->mo = nullptr;
}
ClearScriptedTranslations();
ClearTranslationSlot(TRANSLATION_LevelScripted);


// Initial height of PointOfView will be set by player think.
Expand Down
1 change: 1 addition & 0 deletions src/playsim/p_acs.cpp
Expand Up @@ -9591,6 +9591,7 @@ int DLevelScript::RunScript()
if (translation != NULL)
{
UpdateTranslation(TRANSLATION(TRANSLATION_LevelScripted, transi), translation);
delete translation;
translation = NULL;
}
break;
Expand Down

0 comments on commit 520a960

Please sign in to comment.