diff --git a/source/actor.cpp b/source/actor.cpp index 7c10c7f..614eaa1 100644 --- a/source/actor.cpp +++ b/source/actor.cpp @@ -965,7 +965,13 @@ namespace actor if (sign) draw::draw(x,y,5,7,50,120); } - //int order=0; + void drawAt(actor_t * act, const int x, const int y) + { + act->inner_x = x; + act->inner_y = y; + draw(act, false); + } + void draw(actor_t *act, const bool draw_all) { if (!act) return; diff --git a/source/actor.h b/source/actor.h index 1c8a4eb..56a8cca 100644 --- a/source/actor.h +++ b/source/actor.h @@ -135,6 +135,7 @@ namespace actor void update(actor_t *act, const bool update_all=true); void updateEditor(actor_t *act, const bool update_all=true); + void drawAt(actor_t * act, const int x, const int y); void draw(actor_t *act, const bool draw_all=true); actor_t *find(std::string name);