diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-07-25 13:14:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-07-25 13:14:39 +0300 |
commit | c1c6cb457479e17d07bc6d9baa618ef85d60f2bc (patch) | |
tree | 253ebcf1e0d4178431cb4c09f82e9276e47aef8a /src/resources/dye.cpp | |
parent | aa488ea3fa37c132b7b0bd4a91f2014d25756a06 (diff) | |
download | manaverse-c1c6cb457479e17d07bc6d9baa618ef85d60f2bc.tar.gz manaverse-c1c6cb457479e17d07bc6d9baa618ef85d60f2bc.tar.bz2 manaverse-c1c6cb457479e17d07bc6d9baa618ef85d60f2bc.tar.xz manaverse-c1c6cb457479e17d07bc6d9baa618ef85d60f2bc.zip |
Improve a bit dye code formatting.
Diffstat (limited to 'src/resources/dye.cpp')
-rw-r--r-- | src/resources/dye.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/resources/dye.cpp b/src/resources/dye.cpp index 93edbabbc..dd6c50d63 100644 --- a/src/resources/dye.cpp +++ b/src/resources/dye.cpp @@ -206,12 +206,12 @@ void DyePalette::replaceSColor(uint8_t *const color) const if (it == it_end) return; const DyeColor &col2 = *it; - if (color[2] == col.value[0] && color[1] == col.value[1] - && color[0] == col.value[2]) + if (color[3] == col.value[0] && color[2] == col.value[1] + && color[1] == col.value[2]) { - color[2] = col2.value[0]; - color[1] = col2.value[1]; - color[0] = col2.value[2]; + color[3] = col2.value[0]; + color[2] = col2.value[1]; + color[1] = col2.value[2]; return; } ++ it; |