]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - pr_edict.c
now supports Mac and Windows newlines everywhere
[xonotic/darkplaces.git] / pr_edict.c
index c789469f4979a2e32c9bedc66b8ce81bf0905b07..efb884bd9bb335fe8c280eeec9870133c7181a37 100644 (file)
@@ -931,6 +931,8 @@ char *ED_NewString (const char *string)
                        i++;
                        if (string[i] == 'n')
                                *new_p++ = '\n';
+                       else if (string[i] == 'r')
+                               *new_p++ = '\r';
                        else
                                *new_p++ = '\\';
                }
@@ -1296,7 +1298,7 @@ void PR_LoadProgs (const char *progsname)
        ddef_t *infielddefs;
        dfunction_t *dfunctions;
 
-       if (!progsname || !*progsname) 
+       if (!progsname || !*progsname)
                Host_Error("PR_LoadProgs: passed empty progsname");
 
 // flush the non-C variable lookup cache