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

Fixes orbiting click catcher. #23129

Merged
merged 4 commits into from Jan 22, 2017
Merged

Fixes orbiting click catcher. #23129

merged 4 commits into from Jan 22, 2017

Conversation

AnturK
Copy link
Member

@AnturK AnturK commented Jan 19, 2017

I'm open to any ideas how to recognize UI elements better.

@AnturK AnturK added the Fix Rewrites a bug so it appears in different circumstances label Jan 19, 2017
@@ -23,6 +23,8 @@
master = null
return ..()

/obj/screen/orbit(atom/A, radius = 10, clockwise = FALSE, rotation_speed = 20, rotation_segments = 36, pre_rotation = TRUE, lockinorbit = FALSE)
Copy link
Member

Choose a reason for hiding this comment

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

I think you don't need to specify the arguments if you're just going to ignore them.

@@ -23,6 +23,8 @@
master = null
return ..()

/obj/screen/orbit(atom/A, radius, clockwise, rotation_speed, rotation_segments, pre_rotation, lockinorbit)
Copy link
Contributor

Choose a reason for hiding this comment

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

uh, no, they meant /obj/screen/orbit(), you don't need to pass in the args at all if you're just ignoring them.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'd rather have signatures same in case some crazy person decides to call them through named args.

Copy link
Contributor

Choose a reason for hiding this comment

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

if you're having the signatures, put the default args back, if you're not putting the defaults back, remove the signatures.

your call, pick one (also hint: if it's A, don't commit it, just revert the previous one)

Copy link
Member Author

@AnturK AnturK Jan 20, 2017

Choose a reason for hiding this comment

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

Removing is easier from web interface 📯

@RemieRichards
Copy link
Contributor

actually commit-message-antur it'd be your fault for justifying it via your laziness and the web editor :P

@AnturK
Copy link
Member Author

AnturK commented Jan 20, 2017

Shh

@imtakingabreakdontatme imtakingabreakdontatme merged commit a6dbfd5 into tgstation:master Jan 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix Rewrites a bug so it appears in different circumstances
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants