]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/credits.c
More cleanup.
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / credits.c
index d0131b3fa7fd9b5e0643bc9cfbc0d7aa8e7d6d18..0d998d7de920f231a0c3e8729fc552a0c2de09a2 100644 (file)
@@ -30,9 +30,7 @@ void XonoticCreditsList_configureXonoticCreditsList(entity me)
 {
        me.configureXonoticListBox(me);
        // load the file
-       me.bufferIndex = buf_load(strcat("xonotic-credits.txt.", cvar_string("prvm_language")));
-       if(me.bufferIndex < 0)
-               me.bufferIndex = buf_load("xonotic-credits.txt");
+       me.bufferIndex = buf_load(language_filename("xonotic-credits.txt"));
        me.nItems = buf_getsize(me.bufferIndex);
 }
 void XonoticCreditsList_destroy(entity me)