#include "player.h"
#include <fstream>
+#include "jthread/jmutexautolock.h"
#include "util/numeric.h"
#include "hud.h"
#include "constants.h"
u32 Player::addHud(HudElement *toadd)
{
JMutexAutoLock lock(m_mutex);
+
u32 id = getFreeHudID();
if (id < hud.size())
#include "irrlichttypes_bloated.h"
#include "inventory.h"
#include "constants.h" // BS
-#include "jthread/jmutexautolock.h"
+#include "jthread/jmutex.h"
#include <list>
#define PLAYERNAME_SIZE 20
}
u32 getFreeHudID() {
- JMutexAutoLock lock(m_mutex);
size_t size = hud.size();
for (size_t i = 0; i != size; i++) {
if (!hud[i])