-
Notifications
You must be signed in to change notification settings - Fork 148
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
Implement removeAirport game command #2454
Implement removeAirport game command #2454
Conversation
2ea8387
to
04a6be0
Compare
@duncanspumpkin I think that's the remaining bugs in the implementation worked out. Airports can be removed and created without issue now. |
StationId stationId = StationId::null; | ||
if ((flags & Flags::ghost) != 0) | ||
{ | ||
return loc_49372F(stationId, *stationEl, args.pos, flags); |
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.
this isn't how we have generally written these functions normally we just do
if (!isGhost){
... // non ghost code
}
... // everyone code
i mean its fine to do its just a bit odd.
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.
Hmm, I needed it to understand the jumping that was going on. To be honest, I prefer having two functions of this length over one big function. Question is what to name it, though.
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.
See comments
3389576
to
f812ae0
Compare
I've added the helper as requested in the latest commit. However, there must be a mistake, as it no longer completely removes the airport. Debugging suggests all parts are accounted for, however. Things appear to be working fine on the previous commit, so it must be due to these latest changes. I could do with a second pair of eyes on this. |
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.
No divergences
Has a few issues to be worked out still