mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-05-05 11:11:42 -04:00
++
This commit is contained in:
parent
f24951d3ec
commit
b7e34326a0
2 changed files with 7 additions and 8 deletions
|
@ -82,9 +82,9 @@ void CMapD::UpdateDialog()
|
|||
{
|
||||
CIniFile& ini=Map->GetIniFile();
|
||||
|
||||
m_LocalSize.SetWindowText( ini.sections["Map"].values["LocalSize"] );
|
||||
m_LocalSize.SetWindowText(ini.GetString("Map", "LocalSize"));
|
||||
//m_Size.SetWindowText( ini.sections["Map"].values["Size"] );
|
||||
m_Theater.SetWindowText( ini.sections["Map"].values["Theater"] );
|
||||
m_Theater.SetWindowText(ini.GetString("Map", "Theater"));
|
||||
|
||||
char c[50];
|
||||
itoa(Map->GetWidth(), c, 10);
|
||||
|
@ -108,7 +108,7 @@ void CMapD::OnChangeUsesize()
|
|||
void CMapD::OnEditchangeTheater()
|
||||
{
|
||||
CIniFile& ini=Map->GetIniFile();
|
||||
ini.sections["Map"].values["Theater"]=GetText(&m_Theater);
|
||||
ini.SetString("Map", "Theater", GetText(&m_Theater));
|
||||
}
|
||||
|
||||
void CMapD::UpdateStrings()
|
||||
|
@ -125,7 +125,7 @@ void CMapD::UpdateStrings()
|
|||
void CMapD::OnChangelocal()
|
||||
{
|
||||
CIniFile& ini=Map->GetIniFile();
|
||||
ini.sections["Map"].values["LocalSize"]=GetText(&m_LocalSize);
|
||||
ini.SetString("Map", "LocalSize", GetText(&m_LocalSize));
|
||||
|
||||
Map->CalcMapRect();
|
||||
((CFinalSunDlg*)theApp.m_pMainWnd)->m_view.m_isoview->RedrawWindow(NULL, NULL, RDW_INVALIDATE | RDW_UPDATENOW);
|
||||
|
|
|
@ -316,7 +316,7 @@ public:
|
|||
|
||||
|
||||
int rampbase = rampset_start;//atoi((*tiles).sections["General"].values["RampBase"]);
|
||||
int rampsmooth = atoi((*tiles).sections["General"].AccessValueByName("RampSmooth"));
|
||||
int rampsmooth = tiles->GetInteger("General", "RampSmooth");
|
||||
|
||||
if (ns == -1 && (d.wTileSet == rampset || d.wTileSet == rampsmooth) && d.bMorphable)
|
||||
{
|
||||
|
@ -360,8 +360,7 @@ public:
|
|||
if (dwPos > fielddata_size) return FALSE;
|
||||
|
||||
int replacement = 0; // MW fix: ignore for bridges
|
||||
if ((*tiledata)[dwID].bReplacementCount && atoi((*tiles).sections["General"].AccessValueByName("BridgeSet")) != (*tiledata)[dwID].wTileSet)
|
||||
{
|
||||
if ((*tiledata)[dwID].bReplacementCount && tiles->GetInteger("General", "BridgeSet") != (*tiledata)[dwID].wTileSet) {
|
||||
replacement = rand() * (1 + (*tiledata)[dwID].bReplacementCount) / RAND_MAX;
|
||||
}
|
||||
|
||||
|
@ -1000,7 +999,7 @@ public:
|
|||
#endif
|
||||
|
||||
BOOL IsYRMap();
|
||||
BOOL IsMapSection(LPCSTR lpSectionName);
|
||||
bool IsMapSection(const CString& sectionName);
|
||||
void ResizeMap(int iLeft, int iTop, DWORD dwNewWidth, DWORD dwNewHeight);
|
||||
void SmoothTiberium(DWORD dwPos);
|
||||
int GetPowerOfHouse(LPCTSTR lpHouse);
|
||||
|
|
Loading…
Add table
Reference in a new issue