compile on gcc

This commit is contained in:
David Rose 2005-06-29 23:47:57 +00:00
parent 9d9465a097
commit ea4792ebc5

View File

@ -422,10 +422,10 @@ generateColor(const float interpolated_time) {
&& interpolated_time <= cur_seg->get_time_end() ) {
segment_found = true;
out += cur_seg->interpolateColor(interpolated_time);
out[0] = max(0,min(out[0],1.0f));
out[1] = max(0,min(out[1],1.0f));
out[2] = max(0,min(out[2],1.0f));
out[3] = max(0,min(out[3],1.0f));
out[0] = max(0.0f, min(out[0], 1.0f));
out[1] = max(0.0f, min(out[1], 1.0f));
out[2] = max(0.0f, min(out[2], 1.0f));
out[3] = max(0.0f, min(out[3], 1.0f));
}
}