Actually check spatter amounts properly

develop
Japa 2016-08-26 08:49:54 +05:30
parent db7be082ef
commit 5c3260c382
1 changed files with 2 additions and 2 deletions

@ -1357,7 +1357,7 @@ void Copyspatters(df::map_block * DfBlock, RemoteFortressReader::MapBlock * NetB
auto send_pile = NetBlock->add_spatterpile();
for each (auto mat in materials)
{
if (mat->amount == 0)
if (mat->amount[xx][yy] == 0)
continue;
auto send_spat = send_pile->add_spatters();
send_spat->set_state((MatterState)mat->mat_state);
@ -1368,7 +1368,7 @@ void Copyspatters(df::map_block * DfBlock, RemoteFortressReader::MapBlock * NetB
}
for each (auto item in items)
{
if (item->amount == 0)
if (item->amount[xx][yy] == 0)
continue;
auto send_spat = send_pile->add_spatters();
auto send_mat = send_spat->mutable_material();