Implemented inline void set_artificial

This commit is contained in:
CobaltXII
2018-12-29 15:23:27 -05:00
parent 1c7ca5b3a1
commit 09481e4470

View File

@@ -135,4 +135,13 @@ struct world
voxel_set_natural(voxels[x + x_res * (y + y_res * z)], natural);
}
// Set the artificial lighting information of the voxel at the specified
// coordinates.
inline void set_artificial(unsigned int x, unsigned int y, unsigned int z, unsigned char artificial)
{
voxel_set_artificial(voxels[x + x_res * (y + y_res * z)], artificial);
}
};