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

Naming a few boost related variables #281

Merged
merged 3 commits into from
Dec 30, 2024
Merged

Conversation

Kiloku
Copy link
Contributor

@Kiloku Kiloku commented Dec 29, 2024

For more clarity about gTankActiveBurnerCount: Each of the following actions increments the value if they are happening during the frame: Player is boosting, player is braking, player is using the left jet (holding Z), player is using the right jet (holding R).
This value is used to determine how fast the boost meter should be drained.

src/engine/fox_tank.c Outdated Show resolved Hide resolved
@Kiloku
Copy link
Contributor Author

Kiloku commented Dec 30, 2024

How can I tell if a variable is static rather than global? I'm more used to C++ than C, so I'm kind of learning a lot still

@sonicdcer
Copy link
Owner

sonicdcer commented Dec 30, 2024

How can I tell if a variable is static rather than global? I'm more used to C++ than C, so I'm kind of learning a lot still

If it's used in only one file, that's an indication of a variable being static. We don't use the static keyword here however, because IDO removes them from the mapfile, and they're good to have for usage of various tools.

@petrie911 petrie911 merged commit f3e2776 into sonicdcer:master Dec 30, 2024
2 checks passed
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.

3 participants