Posted By: pararealist
add string to DEBUG_VAR please - 07/25/10 11:09
It would be nice if DEBUG_VAR had a STRING* param too.
e.g DEBUG_VAR("move_dist", move_dist, 300);
Posted By: jcl
Re: add string to DEBUG_VAR please - 07/26/10 08:39
#define DEBUG_VAR2(name,vv,pos_y) draw_text(str_printf(NULL,"%s: %.3f",_chr(name),(double)vv),10,pos_y,COLOR_RED)
Not tested, but try it - at least this is the general idea.
Posted By: pararealist
Re: add string to DEBUG_VAR please - 07/26/10 09:33
OK, i will.
EDIT Tested
Works fine. Thanks.