mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-07-17 19:56:38 -04:00
fixed sometimes basenode cannot be drawn correctly. (e.g. allied infantry barracks) .
This commit is contained in:
parent
204bdf0ea3
commit
2a9edd868c
2 changed files with 12 additions and 6 deletions
|
@ -1756,9 +1756,8 @@ void CMapData::UpdateNodes(BOOL bSave)
|
|||
int x = atoi(sx);
|
||||
int y = atoi(sy);
|
||||
int bid = buildingid[type];
|
||||
int d, f;
|
||||
for (d = 0; d < buildinginfo[bid].h; d++) {
|
||||
for (f = 0; f < buildinginfo[bid].w; f++) {
|
||||
for (auto d = 0; d < buildinginfo[bid].h; d++) {
|
||||
for (auto f = 0; f < buildinginfo[bid].w; f++) {
|
||||
int pos = x + d + (y + f) * GetIsoSize();
|
||||
fielddata[pos].node.type = buildingid[type];
|
||||
fielddata[pos].node.house = id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue