aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/map/Map.cpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-09-26 18:15:43 +0200
committer GitHub <noreply@github.com>2023-09-26 18:15:43 +0200
commitca3996510ed6e26a81c781992d33c335ca250a16 (patch)
treee456ce0a8355ae2936d78a99b6c77ef785a8e5d5 /src/openvic-simulation/map/Map.cpp
parent63e462fceff981f79bcbae53e8d90fc59733e8c2 (diff)
parent1c7b3239ab4e9f75d0605e5da852daf5afaa8c4a (diff)
Merge pull request #35 from OpenVicProject/expect-modifier-keys
Expect modifier value + keys function
Diffstat (limited to 'src/openvic-simulation/map/Map.cpp')
-rw-r--r--src/openvic-simulation/map/Map.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvic-simulation/map/Map.cpp b/src/openvic-simulation/map/Map.cpp
index e29f104..7ecff39 100644
--- a/src/openvic-simulation/map/Map.cpp
+++ b/src/openvic-simulation/map/Map.cpp
@@ -406,7 +406,7 @@ bool Map::load_region_file(ast::NodeCPtr root) {
static constexpr colour_t colour_at(uint8_t const* colour_data, int32_t idx) {
/* colour_data is filled with BGR byte triplets - to get pixel idx as a
* single RGB value, multiply idx by 3 to get the index of the corresponding
- * triplet, then combine the bytes in reverse order.
+ * triplet, then combine the bytes in reverse order.
*/
idx *= 3;
return (colour_data[idx + 2] << 16) | (colour_data[idx + 1] << 8) | colour_data[idx];