globalvar to global var macro needed. Already known just referencing.
Tracker Reference:
http://enigma-dev.org/tracker/ticket.php?id=91
Tracker Reference:
http://enigma-dev.org/tracker/ticket.php?id=91
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
background_showcolor = (backcolor!=-1); if (background_showcolor)
{
int clearcolor=((int)background_color)&0xFFFFFF;
glClearColor(__GETR(clearcolor)/255.0,__GETG(clearcolor)/255.0,__GETB(clearcolor)/255.0, 1);
glClear(GL_COLOR_BUFFER_BIT);
}inline void action_move_to(double x, double y, bool argument_relative = false)
{
enigma::object_planar* const inst = ((enigma::object_planar*)enigma::instance_event_iterator->inst);
if (argument_relative)
{
inst->x += x;
inst->y += y;
}
else
{
inst->x = x;
inst->y = y;
}
}QuoteSo it needs to keep track of where to actually close the '{' for action_if's (that have the relatvie checkbox) which is much more complex than passing the value in by the argument.Can't you put the closing brace in then move back up into the statements?
argument_relative = true;
action_move_to(4, 4);action_move_to(4, 4);