Skip to content
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

Merged
merged 4 commits into from Aug 16, 2023
Merged

add instance_create_depth #2356

merged 4 commits into from Aug 16, 2023

Conversation

RobertBColton
Copy link
Contributor

@RobertBColton RobertBColton commented Aug 16, 2023

Also fixed instance_copy so that it inits the copied variables before calling the create event.

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();
Copy link
Contributor Author

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

Copy link
Contributor

@k0T0z k0T0z left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@RobertBColton RobertBColton merged commit d64a8ec into master Aug 16, 2023
1 of 10 checks passed
@RobertBColton RobertBColton deleted the instance-create-depth branch August 16, 2023 05:21
Comment on lines 156 to 160
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;
Copy link
Contributor

@dc03 dc03 Aug 16, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants