removed now redundant code

and substituted "copy file and delete original" with "move file"
This commit is contained in:
ac-stef
2014-05-19 18:48:54 +02:00
parent 2768012579
commit d81c884cea
4 changed files with 1 additions and 37 deletions
+1 -2
View File
@@ -1012,9 +1012,8 @@ int processdownload(package *pck)
case PCK_TEXTURE: case PCK_AUDIO:
{
const char *pckname = findfile(path(pck->name, true), "w+");
preparedir(pckname);
// with textures/sounds, the image/audio file itself is sent. Just need to copy it from the temporary file
if(!copyfile(tmpname, pckname)) conoutf(_("\f3failed to install"), pckname);
if(rename(tmpname, pckname)) conoutf(_("\f3failed to install"), pckname);
break;
}