aboutsummaryrefslogtreecommitdiff
path: root/po/be/minetest.po
Commit message (Expand)AuthorAge
* Update translationsTranslations2019-02-24
* Update minetest.conf.example, settings strings and locale files (#8230)Wuzzy2019-02-14
* Run updatepo.shTranslation2019-02-14
* Update translationsTranslations2019-02-14
* Update translationsTranslations2019-02-02
* Cleanup translation filesLoïc Blot2019-01-28
* Update translationsTranslations2019-01-27
* Run updatepo.shTranslations2019-01-06
* Update translations from WeblateTranslations2019-01-06
* Update minetest.conf.example and run updatepo.sh (#7947)Update Script2018-12-09
* Add translation of LANG_CODE in all languagesEkdohibs2017-08-24
* Fix updatepo.sh and run it.Ekdohibs2017-08-24
* Translated using Weblate (Belarusian)Viktar Vauchkevich2017-06-03
* Run updatepo.shLoic Blot2017-05-21
* Translated using Weblate (Belarusian)Viktar Vauchkevich2017-05-04
* Footsteps without view bobbing (#5645)Louis Pearson2017-04-25
* Translated using Weblate (Belarusian)Viktar Vauchkevich2017-04-06
* Translated using Weblate (Belarusian)Viktar Vauchkevich2017-04-06
* Translated using Weblate (Belarusian)Viktar Vauchkevich2017-04-06
* Run updatepo.shest312016-08-30
* Run updatepo.shest312016-07-12
* Run updatepo.shest312016-05-05
* Update po files, minetest.conf.example and settings_translation_file.cppest312016-02-27
* Run util/updatepo.shest312015-11-08
* Run updatepo.shest312015-10-24
* Run updatepo.shest312015-09-12
* Run updatepo.shest312015-07-17
* Revert "Update Russian translation"Kahrl2014-12-13
* Update po filesShadowNinja2014-12-12
* Fix Belarusian translation headerShadowNinja2014-11-19
* Fix translation name.Selat2014-03-02
n) const { if (map_format_version == 24) { // Version 0 is a placeholder for "nothing to see here; go away." if (m_data.empty()) { writeU8(os, 0); // version return; } writeU8(os, 1); // version writeU16(os, m_data.size()); } if (map_format_version >= 25) { writeU8(os, 2 + 4 + 4); // length of the data for a single timer writeU16(os, m_data.size()); } for (std::map<v3s16, NodeTimer>::const_iterator i = m_data.begin(); i != m_data.end(); ++i) { v3s16 p = i->first; NodeTimer t = i->second; u16 p16 = p.Z * MAP_BLOCKSIZE * MAP_BLOCKSIZE + p.Y * MAP_BLOCKSIZE + p.X; writeU16(os, p16); t.serialize(os); } } void NodeTimerList::deSerialize(std::istream &is, u8 map_format_version) { m_data.clear(); if(map_format_version == 24){ u8 timer_version = readU8(is); if(timer_version == 0) return; if(timer_version != 1) throw SerializationError("unsupported NodeTimerList version"); } if(map_format_version >= 25){ u8 timer_data_len = readU8(is); if(timer_data_len != 2+4+4) throw SerializationError("unsupported NodeTimer data length"); } u16 count = readU16(is); for(u16 i=0; i<count; i++) { u16 p16 = readU16(is); v3s16 p; p.Z = p16 / MAP_BLOCKSIZE / MAP_BLOCKSIZE; p16 &= MAP_BLOCKSIZE * MAP_BLOCKSIZE - 1; p.Y = p16 / MAP_BLOCKSIZE; p16 &= MAP_BLOCKSIZE - 1; p.X = p16; NodeTimer t; t.deSerialize(is); if(t.timeout <= 0) { warningstream<<"NodeTimerList::deSerialize(): " <<"invalid data at position" <<"("<<p.X<<","<<p.Y<<","<<p.Z<<"): Ignoring." <<std::endl; continue; } if(m_data.find(p) != m_data.end()) { warningstream<<"NodeTimerList::deSerialize(): " <<"already set data at position" <<"("<<p.X<<","<<p.Y<<","<<p.Z<<"): Ignoring." <<std::endl; continue; } m_data.insert(std::make_pair(p, t)); } } std::map<v3s16, NodeTimer> NodeTimerList::step(float dtime) { std::map<v3s16, NodeTimer> elapsed_timers; // Increment timers for(std::map<v3s16, NodeTimer>::iterator i = m_data.begin(); i != m_data.end(); ++i){ v3s16 p = i->first; NodeTimer t = i->second; t.elapsed += dtime; if(t.elapsed >= t.timeout) elapsed_timers.insert(std::make_pair(p, t)); else i->second = t; } // Delete elapsed timers for(std::map<v3s16, NodeTimer>::const_iterator i = elapsed_timers.begin(); i != elapsed_timers.end(); ++i){ v3s16 p = i->first; m_data.erase(p); } return elapsed_timers; }