Skip to content

Commit

Permalink
Further fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
RicBent committed Nov 13, 2016
1 parent 1796bab commit ea0fcf9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion cstreamwriter.cpp
Expand Up @@ -143,7 +143,10 @@ void CStreamWriter::writeMapObjects(QList<MapObject*>* mapObjects, quint8 type,
writeMapObject(o);
}

*stream << "\t{ 0xFF, {0xFF, 0xFF, 0xFF}, 0, 0, 0 }" << endl;
if (type == 0)
*stream << "\t{ 0x00, {0x00, 0x00, 0x00}, 0, 0, 0 }" << endl;
else
*stream << "\t{ 0xFF, {0xFF, 0xFF, 0xFF}, 0, 0, 0 }" << endl;
*stream << "};" << endl;
}

Expand Down
8 changes: 4 additions & 4 deletions goombatlas_data/worldmap.h
Expand Up @@ -53,7 +53,7 @@ typedef struct mapObject
s32 x;
s32 y;
s32 z;
} worldmapObject;
} mapObject;

typedef struct bowserJrNode
{
Expand All @@ -67,9 +67,9 @@ typedef struct world
pathBehavior *pathBehaviors;
sprites *mapObjs;
visibleNode *visibleNode;
worldmapObject *starcoinSigns; // As many as you want. Last one should be zeroed
worldmapObject *strongholds; // ^
worldmapObject *mushroomHouses; // ^
mapObject *starcoinSigns; // As many as you want. Last one should be zeroed
mapObject *strongholds; // ^
mapObject *mushroomHouses; // ^
bowserJrNode **bowserJrPaths;
u16 nodeCount;
u16 pathCount;
Expand Down

0 comments on commit ea0fcf9

Please sign in to comment.