Working on a messaging system for sf events

This commit is contained in:
MitchellHansen
2017-01-10 08:46:12 -08:00
parent 475a879b51
commit 3c91614f45
10 changed files with 249 additions and 29 deletions

View File

@@ -131,11 +131,11 @@ sf::Color Ray::Cast() {
switch (voxel_data) {
case 5:
return sf::Color(255, 120, 255, alpha);
return sf::Color(255, 120, 255, static_cast<int>(alpha));
case 6:
return sf::Color(150, 80, 220, alpha);
return sf::Color(150, 80, 220, static_cast<int>(alpha));
default:
return sf::Color(150, 80, 220, alpha);
return sf::Color(150, 80, 220, static_cast<int>(alpha));
}
dist++;