From 6f2b43af9b83c69134a7a5ecb6e5820c42fcb135 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sat, 19 Jan 2008 12:32:08 +0000 Subject: fixed remove and replace image --- src/game/editor/ed_layer_quads.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/game/editor/ed_layer_quads.cpp') diff --git a/src/game/editor/ed_layer_quads.cpp b/src/game/editor/ed_layer_quads.cpp index ca84ffe8..e945dd16 100644 --- a/src/game/editor/ed_layer_quads.cpp +++ b/src/game/editor/ed_layer_quads.cpp @@ -194,3 +194,16 @@ int LAYER_QUADS::render_properties(RECT *toolbox) } +void LAYER_QUADS::modify_image_index(index_modify_func func) +{ + func(&image); +} + +void LAYER_QUADS::modify_envelope_index(index_modify_func func) +{ + for(int i = 0; i < quads.len(); i++) + { + func(&quads[i].pos_env); + func(&quads[i].color_env); + } +} -- cgit 1.4.1