Send shapes for small gems too.

develop
Japa 2018-01-07 01:14:15 +05:30
parent d80d16ddc3
commit 29426111f7
1 changed files with 6 additions and 0 deletions

@ -65,6 +65,7 @@
#include "df/item_gemst.h"
#include "df/item_threadst.h"
#include "df/item_toolst.h"
#include "df/item_smallgemst.h"
#include "df/itemimprovement.h"
#include "df/itemimprovement_threadst.h"
#include "df/itemdef.h"
@ -1430,6 +1431,11 @@ void CopyItem(RemoteFortressReader::Item * NetItem, df::item * DfItem)
{
NetItem->set_shape(gem_item->shape);
}
VIRTUAL_CAST_VAR(smallgem_item, df::item_smallgemst, DfItem);
if (smallgem_item)
{
NetItem->set_shape(smallgem_item->shape);
}
VIRTUAL_CAST_VAR(constructed_item, df::item_constructed, DfItem);
if (constructed_item)
{