radian-software / TerrariaClone

🔥 An incomprehensible hellscape of spaghetti code.
MIT License
1.79k stars 136 forks source link

Who stole the comments? #22

Open pannous opened 5 years ago

pannous commented 5 years ago

Even though the code is pretty much self explanatory, in line 4337 you cleverly wrote

            if (blocks[layer][uy][ux] >= 8 && blocks[layer][uy][ux] <= 14 || blocks[layer][uy][ux] == 17 || blocks[layer][uy][ux] == 23 || blocks[layer][uy][ux] >= 80 && blocks[layer][uy][ux] <= 82) {

For amateur coders you might consider adding back(?) the helpful comment, which must have been deleted during refactoring.