stolenrays
Deity
- Joined
- Aug 2, 2009
- Messages
- 2,063
I am having trouble merging these two mods. All functions work except the Air Combat Experience Mod's (ACE) functions of:
1. Bomb Noman's land
2. Bomb routes
All ACE code parts are commented as Air Combat Experience. I've attached the cvunit.cpp file of my Mod that includes DCM and the standalone cvunit.cpp from ACE. I hope someone can help. I figure teh ACE code sections are just in the wrong place to be compatible with DCM.
1. Bomb Noman's land
Spoiler :
Code:
// < Air Combat Experience Start >
if (!isEnemy(pPlot->getTeam()) && !GC.getGameINLINE().isBombNoMansLand())
{
return false;
}
// < Air Combat Experience End >
Spoiler :
Code:
// < Air Combat Experience Start >
if(pTargetPlot->getImprovementType() != NO_IMPROVEMENT )
{
if (GC.getImprovementInfo(pTargetPlot->getImprovementType()).isPermanent())
{
return false;
}
if (GC.getImprovementInfo(pTargetPlot->getImprovementType()).getAirBombDefense() == -1)
{
return false;
}
}
if(GC.getGameINLINE().isRouteDestructionThroughAirBombs())
{
if (pTargetPlot->getRouteType() != NO_ROUTE && GC.getRouteInfo(pTargetPlot->getRouteType()).getAirBombDefense() == -1)
{
return false;
}
}
// < Air Combat Experience End >
All ACE code parts are commented as Air Combat Experience. I've attached the cvunit.cpp file of my Mod that includes DCM and the standalone cvunit.cpp from ACE. I hope someone can help. I figure teh ACE code sections are just in the wrong place to be compatible with DCM.