mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
farmesh is now usable.
This commit is contained in:
parent
0bd1b782d0
commit
7773e68c2a
7 changed files with 259 additions and 76 deletions
16
src/map.h
16
src/map.h
|
@ -41,13 +41,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "mapchunk.h"
|
||||
#include "nodemetadata.h"
|
||||
|
||||
/*
|
||||
Temporarily exposed map generator stuff
|
||||
Should only be used for testing
|
||||
*/
|
||||
|
||||
double base_rock_level_2d(u64 seed, v2s16 p);
|
||||
|
||||
/*
|
||||
MapEditEvent
|
||||
*/
|
||||
|
@ -751,6 +744,12 @@ public:
|
|||
// For debug printing
|
||||
virtual void PrintInfo(std::ostream &out);
|
||||
|
||||
// Check if sector was drawn on last render()
|
||||
bool sectorWasDrawn(v2s16 p)
|
||||
{
|
||||
return (m_last_drawn_sectors.find(p) != NULL);
|
||||
}
|
||||
|
||||
private:
|
||||
Client *m_client;
|
||||
|
||||
|
@ -765,7 +764,8 @@ private:
|
|||
v3f m_camera_position;
|
||||
v3f m_camera_direction;
|
||||
JMutex m_camera_mutex;
|
||||
|
||||
|
||||
core::map<v2s16, bool> m_last_drawn_sectors;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue