X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fdaynightratio.h;h=f959cdf6caeef80f0b4faa20223d5ba917e06ba3;hb=fd3afbced5410639325e730d5710b8b5039b320e;hp=3375133ef207b0e434953e032b683166c866c766;hpb=22e186b4aa88b585e71500c4e9a03bf69b0b6191;p=minetest.git diff --git a/src/daynightratio.h b/src/daynightratio.h index 3375133ef..f959cdf6c 100644 --- a/src/daynightratio.h +++ b/src/daynightratio.h @@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef DAYNIGHTRATIO_HEADER -#define DAYNIGHTRATIO_HEADER +#pragma once inline u32 time_to_daynight_ratio(float time_of_day, bool smooth) { @@ -51,19 +50,17 @@ inline u32 time_to_daynight_ratio(float time_of_day, bool smooth) return values[i][1]; } return 1000; - } else { - for(u32 i=0; i