-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Assorted cleanups for lin_time.cpp #1056
base: master
Are you sure you want to change the base?
Conversation
5c85577
to
a2facab
Compare
Signed-off-by: Vincent Legoll <[email protected]>
Assuming WIN32 & _WIN32 macros are equivalent, this code is duplicated. Signed-off-by: Vincent Legoll <[email protected]>
Signed-off-by: Vincent Legoll <[email protected]>
Signed-off-by: Vincent Legoll <[email protected]>
Signed-off-by: Vincent Legoll <[email protected]>
a2facab
to
2eaf025
Compare
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.
Looks pretty straightforward to me.
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.
- Some of the changes only effect Win32 platform so let's make sure that is play tested.
- let's make sure this doesn't break the game's ability to pause
reset_time_compression(s, a); | ||
} | ||
} | ||
} |
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.
Q: is this disabling the games ability to Pause? Or is that being handled somewhere else now?
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 function is unused (AFAIK, I git grep'ed it in engine & assets), I think what is used is the toggle_pause()
function, a few lines below in lin_time.cpp (used in engine/src/cmd/ai/firekeyboard.cpp
).
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.
@vincele thanks - I'll try to pull it down and test to validate. That's my main concern here.
The only change that may affect WIN32 is the removal of the duplicated : #define & #include. I'd be strongly surprised if that had a runtime impact, as that would be very misleading from That being said, I'll still wait for an ACK from a WIN32 play test before merging. |
First easy batch of cleanups, there should be no issues with this fairly non-controversial lot.
Code Changes:
Issues:
Purpose: