We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
At each time we do something over the four layers, we have four times the same lines of code, it can be factorised. Example :
{ case 0: tile1[coord.second][coord.first] = tile ; break ; case 1: tile2[coord.second][coord.first] = tile ; break ; case 2: tile3[coord.second][coord.first] = tile ; break ; case 3: tile4[coord.second][coord.first] = tile ; break ; default: std::cerr << "Wrong layer" << std::endl ; }
should be replaced by tiles_layers[layer][coord.second][coord.first]
tiles_layers[layer][coord.second][coord.first]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
At each time we do something over the four layers, we have four times the same lines of code, it can be factorised.
Example :
should be replaced by
tiles_layers[layer][coord.second][coord.first]
The text was updated successfully, but these errors were encountered: