summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/objects/obj_control.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/objects/obj_control.cpp b/src/objects/obj_control.cpp
index 8f1a84b..6b6ab2c 100644
--- a/src/objects/obj_control.cpp
+++ b/src/objects/obj_control.cpp
@@ -3,8 +3,6 @@ OUT #include <cstdlib>
double yd=0;
-double id(double a){return a;}
-
EVENT(create){
x=10;
y=240;
@@ -20,8 +18,5 @@ EVENT(step){
}
EVENT(draw){
- char *s;
- asprintf(&s,"controllll: x=%g y=%g",id(x),id(y));
- draw_text(x,y,s);
- free(s);
+ draw_textf(x,y,"controllll: x=%g y=%g",x,y);
}