| 1233 | |
| 1234 | |
| 1235 | void cWorld::GrowTree(int a_X, int a_Y, int a_Z) |
| 1236 | { |
| 1237 | if (GetBlock(a_X, a_Y, a_Z) == E_BLOCK_SAPLING) |
| 1238 | { |
| 1239 | // There is a sapling here, grow a tree according to its type: |
| 1240 | GrowTreeFromSapling(a_X, a_Y, a_Z, GetBlockMeta(a_X, a_Y, a_Z)); |
| 1241 | } |
| 1242 | else |
| 1243 | { |
| 1244 | // There is nothing here, grow a tree based on the current biome here: |
| 1245 | GrowTreeByBiome(a_X, a_Y, a_Z); |
| 1246 | } |
| 1247 | } |
| 1248 | |
| 1249 | |
| 1250 |