Descent3
Descent3 copied to clipboard
Fix endline characters
Replace \r\n with \n.
#!/bin/sh
for filename in $(find)
do
encoding=$(file -b --mime-encoding $filename)
if [ "$encoding" = "us-ascii" ] ||
[ "$encoding" = "iso-8859-1" ]; then
echo fixing ${filename}
sed 's/\r$//' ${filename} > ${filename}.lf
mv ${filename}.lf ${filename}
done
Fixes #129
The file encodings are not altered by this patch.
Needs Windows testing to make sure levels are generated properly without CRLF
@Lgt2x By properly generated do you mean the game or the editor?
the game when creating the HOGs
I just played through Level 5 with this build, I think it's fine.