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

Move default spawnpoint and sector name ("main") into static variables #2815

Merged
merged 7 commits into from
May 28, 2024

Conversation

tobbi
Copy link
Member

@tobbi tobbi commented Mar 3, 2024

Instead of hardcoding "main" for both, I moved it to a variable.

I don't know if this is the right place, though.

Copy link
Member

@MatusGuy MatusGuy left a comment

Choose a reason for hiding this comment

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

ok code. But someone please test this in game. You never know when something breaks

@tobbi
Copy link
Member Author

tobbi commented Mar 3, 2024

ok code. But someone please test this in game. You never know when something breaks

My code never breaks.

@MatusGuy
Copy link
Member

MatusGuy commented Mar 3, 2024

"my code never breaks" Remember the "prevent drawing offscreen" pr?

@tobbi
Copy link
Member Author

tobbi commented Mar 3, 2024

"my code never breaks" Remember the "prevent drawing offscreen" pr?

The rest of the game wasn't written well enough to support my incredible ideas.

@MatusGuy
Copy link
Member

MatusGuy commented Mar 3, 2024

But it broke the game!! Therefore it broke!!

@tobbi
Copy link
Member Author

tobbi commented Mar 3, 2024

I thought the game would adapt to my code style and just "not break" because it was convinced by the incredible quality of my code.

@MatusGuy
Copy link
Member

MatusGuy commented Mar 3, 2024

You stupid

src/object/spawnpoint.hpp Outdated Show resolved Hide resolved
src/supertux/sector.hpp Outdated Show resolved Hide resolved
@mrkubax10 mrkubax10 added type:patch category:code status:needs-review Work needs to be reviewed by other people labels Mar 4, 2024
@tobbi tobbi force-pushed the make_default_spawnpoint_sector_global branch from 42634ab to 41761b0 Compare May 1, 2024 13:06
@tobbi tobbi requested review from mrkubax10 and MatusGuy May 1, 2024 13:08
@MatusGuy
Copy link
Member

MatusGuy commented May 1, 2024

Have you playtested these changes?

@tobbi
Copy link
Member Author

tobbi commented May 1, 2024

It is literally just a code change.

@MatusGuy
Copy link
Member

MatusGuy commented May 1, 2024

Ok but have you at least ran the game and the title screen showed up correctly?

src/supertux/sector.hpp Outdated Show resolved Hide resolved
@tobbi tobbi requested a review from Vankata453 May 28, 2024 09:44
[ci skip]
@tobbi tobbi merged commit c8604e9 into master May 28, 2024
@mrkubax10 mrkubax10 deleted the make_default_spawnpoint_sector_global branch June 3, 2024 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:code status:needs-review Work needs to be reviewed by other people type:patch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants