linux is not an operating system

This commit is contained in:
Freedom 2023-01-16 19:03:54 +01:00
parent 8feefcdd7b
commit e629c35902
4 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
# This is a game specific minetest.conf file, do not edit # This is a game specific minetest.conf file, do not edit
# If any of these settings are set in your minetest.conf file in ~/.minetest (Linux) or in the root directory of the game (Run in place/Windows) # If any of these settings are set in your minetest.conf file in ~/.minetest (GNU/Linux) or in the root directory of the game (Run in place/Windows)
# They will override these settings # They will override these settings
# Basic game rules # Basic game rules

View File

@ -214,7 +214,7 @@ local function blast_furnace_reset_delta_time(pos)
local current_game_time = .0 + ((minetest.get_day_count() + minetest.get_timeofday()) * time_multiplier) local current_game_time = .0 + ((minetest.get_day_count() + minetest.get_timeofday()) * time_multiplier)
-- TODO: Change meta:get/set_string() to get/set_float() for "last_gametime". -- TODO: Change meta:get/set_string() to get/set_float() for "last_gametime".
-- In Windows *_float() works OK but under Linux it returns rounded unusable values like 449540.000000000 -- In Windows *_float() works OK but under GNU/Linux it returns rounded unusable values like 449540.000000000
local last_game_time = meta:get_string("last_gametime") local last_game_time = meta:get_string("last_gametime")
if last_game_time then if last_game_time then
last_game_time = tonumber(last_game_time) last_game_time = tonumber(last_game_time)

View File

@ -225,7 +225,7 @@ local function furnace_reset_delta_time(pos)
local current_game_time = .0 + ((minetest.get_day_count() + minetest.get_timeofday()) * time_multiplier) local current_game_time = .0 + ((minetest.get_day_count() + minetest.get_timeofday()) * time_multiplier)
-- TODO: Change meta:get/set_string() to get/set_float() for "last_gametime". -- TODO: Change meta:get/set_string() to get/set_float() for "last_gametime".
-- In Windows *_float() works OK but under Linux it returns rounded unusable values like 449540.000000000 -- In Windows *_float() works OK but under GNU/Linux it returns rounded unusable values like 449540.000000000
local last_game_time = meta:get_string("last_gametime") local last_game_time = meta:get_string("last_gametime")
if last_game_time then if last_game_time then
last_game_time = tonumber(last_game_time) last_game_time = tonumber(last_game_time)

View File

@ -213,7 +213,7 @@ local function smoker_reset_delta_time(pos)
local current_game_time = .0 + ((minetest.get_day_count() + minetest.get_timeofday()) * time_multiplier) local current_game_time = .0 + ((minetest.get_day_count() + minetest.get_timeofday()) * time_multiplier)
-- TODO: Change meta:get/set_string() to get/set_float() for "last_gametime". -- TODO: Change meta:get/set_string() to get/set_float() for "last_gametime".
-- In Windows *_float() works OK but under Linux it returns rounded unusable values like 449540.000000000 -- In Windows *_float() works OK but under GNU/Linux it returns rounded unusable values like 449540.000000000
local last_game_time = meta:get_string("last_gametime") local last_game_time = meta:get_string("last_gametime")
if last_game_time then if last_game_time then
last_game_time = tonumber(last_game_time) last_game_time = tonumber(last_game_time)