]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/player.h
Implement minetest.register_can_bypass_userlimit (#6369)
[dragonfireclient.git] / src / player.h
index 1d9882775398beeaa5b846a7c053e1058e50e228..27da73c1604818d1328b28b5f55f51f83b9cdfd1 100644 (file)
@@ -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 PLAYER_HEADER
-#define PLAYER_HEADER
+#pragma once
 
 #include "irrlichttypes_bloated.h"
 #include "inventory.h"
@@ -34,7 +33,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 struct PlayerControl
 {
-       PlayerControl() {}
+       PlayerControl() = default;
 
        PlayerControl(
                bool a_up,
@@ -174,6 +173,3 @@ class Player
        // and ServerThread
        std::mutex m_mutex;
 };
-
-#endif
-