Made remotefortressreader send proper indices for inbuilt materials.

develop
Japa 2015-06-19 23:28:32 +05:30
parent eef9f49ae8
commit 4b05423e58
1 changed files with 24 additions and 24 deletions

@ -494,12 +494,12 @@ static command_result GetMaterialList(color_ostream &stream, const EmptyMessage
mat_def->mutable_state_color()->set_blue(color->blue * 255);
}
}
for (int i = 1; i < 19; i++)
for (int i = 0; i < 19; i++)
{
int k = 0;
int k = -1;
if (i == 7)
k = 1;// for coal.
for (int j = 0; j <= k; j++)
for (int j = -1; j <= k; j++)
{
mat.decode(i, j);
MaterialDefinition *mat_def = out->add_material_list();