mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Support campaign version 10.0 for Liberation 5.2.0
- add a new const to the version.py to allow future campaign version to be backwards compatible - Version 10.0 was only about orientation of ground objects which does not break the compatibility so we can give support for this specific version
This commit is contained in:
@@ -22,7 +22,7 @@ from game.theater import (
|
||||
SyriaTheater,
|
||||
MarianaIslandsTheater,
|
||||
)
|
||||
from game.version import CAMPAIGN_FORMAT_VERSION
|
||||
from game.version import CAMPAIGN_FORMAT_VERSION, SUPPORTED_CAMPAIGN_VERSION
|
||||
from .campaignairwingconfig import CampaignAirWingConfig
|
||||
from .mizcampaignloader import MizCampaignLoader
|
||||
from .. import persistency
|
||||
@@ -147,7 +147,7 @@ class Campaign:
|
||||
@property
|
||||
def is_from_future(self) -> bool:
|
||||
"""Returns True if this campaign is newer than the supported format."""
|
||||
return self.version > CAMPAIGN_FORMAT_VERSION
|
||||
return self.version > SUPPORTED_CAMPAIGN_VERSION
|
||||
|
||||
@property
|
||||
def is_compatible(self) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user