浏览代码

follow the conventions 2

pull/5229/head
Jopestpe 2 天前
committed by GitHub
父节点
当前提交
8b31937dc8
找不到此签名对应的密钥 GPG 密钥 ID: B5690EEEBB952194
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      examples/shapes/shapes_recursive_tree.c

+ 2
- 2
examples/shapes/shapes_recursive_tree.c 查看文件

@ -67,7 +67,7 @@ int main(void)
float theta = angle*DEG2RAD;
int maxBranches = (int)(powf(2, (int)(treeDepth)));
Branch branches[1024];
Branch branches[1024] = { 0 };
int count = 0;
Vector2 initialEnd = CalculateBranchEnd(start, 0.0f, length);
@ -78,7 +78,7 @@ int main(void)
Branch branch = branches[i];
if (branch.length < 2) continue;
float nextLength = branch.length * branchDecay;
float nextLength = branch.length*branchDecay;
if (count < maxBranches && nextLength >= 2)
{

正在加载...
取消
保存