New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add instance_create_depth #2356
Conversation
newinst->yprevious=inst->yprevious; newinst->xprevious=inst->xprevious; | ||
newinst->xstart=inst->xstart; newinst->ystart=inst->ystart; | ||
newinst->image_index=inst->image_index; newinst->image_speed=inst->image_speed; | ||
newinst->visible=inst->visible; newinst->image_xscale=inst->image_xscale; newinst->image_yscale=inst->image_yscale; newinst->image_angle=inst->image_angle; | ||
newinst->hspeed=inst->hspeed; newinst->vspeed=inst->vspeed; | ||
if (perf) newinst->myevent_create(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JoshDreamland do you have proof that create was supposed to run before the variables were copied?
looks like plionz added it: 9e3060f
ENIGMAsystem/SHELL/Universal_System/Instances/instance_create.h
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
newinst->yprevious=inst->yprevious; newinst->xprevious=inst->xprevious; | ||
newinst->xstart=inst->xstart; newinst->ystart=inst->ystart; | ||
newinst->image_index=inst->image_index; newinst->image_speed=inst->image_speed; | ||
newinst->visible=inst->visible; newinst->image_xscale=inst->image_xscale; newinst->image_yscale=inst->image_yscale; newinst->image_angle=inst->image_angle; | ||
newinst->hspeed=inst->hspeed; newinst->vspeed=inst->vspeed; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uh, what is going on with the indentation formatting here?
Also fixed
instance_copy
so that it inits the copied variables before calling the create event.