git repos / saland

commit 81e106d6

Poul Sander · 2023-01-28 21:56
81e106d61a83c24793a91333199d7f7fc7a86c6c patch · browse files
parent 91bdec31fd5601fdfa7c55ccd2a8707a9a3fdd42

Fixed keyword placement issue

Changed files

M src/saland/GameRegion.cpp before
diff --git a/src/saland/GameRegion.cpp b/src/saland/GameRegion.cpp index 93b97d0..37a42c2 100644 --- a/src/saland/GameRegion.cpp +++ b/src/saland/GameRegion.cpp
@@ -155,8 +155,10 @@ const int LAKE_HEIGHT = 20; // height of the lake pattern
const int LAKE_SIZE = 40; // maximum size of the lake
const int LAKE_MIN_SIZE = 8;
-static // function to generate a random lake pattern
-std::vector<std::vector<int>> generateLakePattern() {
+/**
+ * function to generate a random lake pattern
+ */
+static std::vector<std::vector<int>> generateLakePattern() {
std::vector<std::vector<int>> pattern(LAKE_WIDTH, std::vector<int>(LAKE_HEIGHT, 0));
// choose a random point in the pattern as the center of the lake