| Server IP : 82.208.35.60 / Your IP : 216.73.217.103 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/devel/obby/files/ |
Upload File : |
--- src/colour.cpp.orig 2011-10-30 15:52:53 UTC
+++ src/colour.cpp
@@ -47,9 +47,9 @@ unsigned int obby::colour::get_blue() co
bool obby::colour::similar_colour(const colour& colour) const
{
// TODO: Convert to HSV for better checking
- return abs(m_red - colour.m_red) +
- abs(m_green - colour.m_green) +
- abs(m_blue - colour.m_blue) < 32;
+ return abs((int)(m_red - colour.m_red)) +
+ abs((int)(m_green - colour.m_green)) +
+ abs((int)(m_blue - colour.m_blue)) < 32;
}
std::string serialise::default_context_to<obby::colour>::