Scatter bug fix for entities.
This commit is contained in:
parent
eb894f9703
commit
d3b0755f8b
|
@ -289,8 +289,6 @@ static void loadEntities(cJSON *node)
|
||||||
int i, type, scatter, number, active;
|
int i, type, scatter, number, active;
|
||||||
float x, y;
|
float x, y;
|
||||||
|
|
||||||
scatter = 1;
|
|
||||||
|
|
||||||
if (node)
|
if (node)
|
||||||
{
|
{
|
||||||
node = node->child;
|
node = node->child;
|
||||||
|
@ -305,6 +303,7 @@ static void loadEntities(cJSON *node)
|
||||||
groupName = NULL;
|
groupName = NULL;
|
||||||
number = 1;
|
number = 1;
|
||||||
active = 1;
|
active = 1;
|
||||||
|
scatter = 1;
|
||||||
|
|
||||||
if (cJSON_GetObjectItem(node, "name"))
|
if (cJSON_GetObjectItem(node, "name"))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue