if (n.d == CONTENT_COBBLE)
{
MapNode n_top = block→getNodeNoEx(p0+v3s16(0,1,0));
MapNode n_left = block→getNodeNoEx(p0+v3s16(-1,0,0));
MapNode n_right = block→getNodeNoEx(p0+v3s16(1,0,0));
MapNode n_front = block→getNodeNoEx(p0+v3s16(0,0,-1));
MapNode n_back = block→getNodeNoEx(p0+v3s16(0,0,1));
if( content_features(n_top.d).liquid_type == LIQUID_SOURCE ||
content_features(n_top.d).liquid_type == LIQUID_FLOWING ||
content_features(n_left.d).liquid_type == LIQUID_SOURCE ||
content_features(n_left.d).liquid_type == LIQUID_FLOWING ||
content_features(n_right.d).liquid_type == LIQUID_SOURCE ||
content_features(n_right.d).liquid_type == LIQUID_FLOWING ||
content_features(n_front.d).liquid_type == LIQUID_SOURCE ||
content_features(n_front.d).liquid_type == LIQUID_FLOWING ||
content_features(n_back.d).liquid_type == LIQUID_SOURCE ||
content_features(n_back.d).liquid_type == LIQUID_FLOWING)
{
n.d = CONTENT_MOSSYCOBBLE;
m_map→addNodeWithEvent(p, n);
}
}
------
ведь быдло код же, но из-за почти нулевых знаний плюсцов не знаю как лучше, поэтому пусть пока будет так
gisty
18.07.2011 05:07 Gajim5B252824
Do you really want to delete ?