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

Mixed tech intro date check #1146

Merged
merged 1 commit into from
Sep 17, 2018
Merged

Mixed tech intro date check #1146

merged 1 commit into from
Sep 17, 2018

Conversation

neoancient
Copy link
Member

In some cases (usually involving mixed tech) tech will show available before it should because the check whether it was introduced does not account for the possibility that the intro date for the opposite tech base is sometimes -1 (DATE_NONE), which is always less than the current date.

This also can occur during the early Clan era when IS equipment is tweaked to be treated as Clan equipment, which is where I ran across it while working on MegaMek/megameklab#203

In some cases (usually involving mixed tech) tech will show available
before it should because the check whether it was introduced does not
account for the possibility that the intro date for the opposite tech
base is sometimes -1 (DATE_NONE), which is always less than the current
date.
@neoancient neoancient merged commit 96bc212 into master Sep 17, 2018
@neoancient neoancient deleted the tech_intro_date_fix branch September 17, 2018 17:24
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.

4 participants