From bb5cfafd7c21300f0d855f8534065b1b4baf77b1 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sun, 2 Mar 2008 15:55:02 +0000 Subject: fixed so that images get a name when they are just added --- src/game/editor/ed_editor.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/game/editor') diff --git a/src/game/editor/ed_editor.cpp b/src/game/editor/ed_editor.cpp index 3d1b5320..24df8b94 100644 --- a/src/game/editor/ed_editor.cpp +++ b/src/game/editor/ed_editor.cpp @@ -1394,6 +1394,7 @@ static void add_image(const char *filename) *img = imginfo; img->tex_id = gfx_load_texture_raw(imginfo.width, imginfo.height, imginfo.format, imginfo.data, IMG_AUTO); img->external = 1; // external by default + extract_name(filename, img->name); editor.map.images.add(img); } -- cgit 1.4.1