Skip to content

Commit 94cd2bf

Browse files
lhofhanslparamat
authored andcommittedJul 8, 2018
Revert 6587 - Optimize entity-entity collision (#7539)
1 parent 334d8c3 commit 94cd2bf

13 files changed

+80
-634
lines changed
 

‎build/android/jni/Android.mk

-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ LOCAL_SRC_FILES := \
224224
jni/src/rollback_interface.cpp \
225225
jni/src/serialization.cpp \
226226
jni/src/server/mods.cpp \
227-
jni/src/server/serveractiveobjectmap.cpp \
228227
jni/src/server.cpp \
229228
jni/src/serverenvironment.cpp \
230229
jni/src/serverlist.cpp \

‎src/content_sao.cpp

-6
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@ ObjectProperties* UnitSAO::accessObjectProperties()
287287

288288
void UnitSAO::notifyObjectPropertiesModified()
289289
{
290-
m_env->updateActiveObject(this);
291290
m_properties_sent = false;
292291
}
293292

@@ -334,8 +333,6 @@ void LuaEntitySAO::addedToEnvironment(u32 dtime_s)
334333
// Get properties
335334
m_env->getScriptIface()->
336335
luaentity_GetProperties(m_id, &m_prop);
337-
// Notify the environment of the new properties
338-
m_env->updateActiveObject(this);
339336
// Initialize HP from properties
340337
m_hp = m_prop.hp_max;
341338
// Activate entity, supplying serialized state
@@ -669,7 +666,6 @@ void LuaEntitySAO::setPos(const v3f &pos)
669666
if(isAttached())
670667
return;
671668
m_base_position = pos;
672-
m_env->updateActiveObject(this);
673669
sendPosition(false, true);
674670
}
675671

@@ -678,7 +674,6 @@ void LuaEntitySAO::moveTo(v3f pos, bool continuous)
678674
if(isAttached())
679675
return;
680676
m_base_position = pos;
681-
m_env->updateActiveObject(this);
682677
if(!continuous)
683678
sendPosition(true, true);
684679
}
@@ -1169,7 +1164,6 @@ void PlayerSAO::setBasePosition(const v3f &position)
11691164

11701165
// Updating is not wanted/required for player migration
11711166
if (m_env) {
1172-
m_env->updateActiveObject(this);
11731167
m_position_not_sent = true;
11741168
}
11751169
}

‎src/irr_aabb3d.h

-2
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,3 @@ with this program; if not, write to the Free Software Foundation, Inc.,
2424
#include <aabbox3d.h>
2525

2626
typedef core::aabbox3d<f32> aabb3f;
27-
typedef core::aabbox3d<s16> aabb3s16;
28-
typedef core::aabbox3d<s32> aabb3s32;

‎src/irr_v3d.h

+2-18
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,13 @@ with this program; if not, write to the Free Software Foundation, Inc.,
1818
*/
1919

2020
#pragma once
21+
2122
#include "irrlichttypes.h"
23+
2224
#include <vector3d.h>
23-
#include <functional>
2425

2526
typedef core::vector3df v3f;
2627
typedef core::vector3d<double> v3d;
2728
typedef core::vector3d<s16> v3s16;
2829
typedef core::vector3d<u16> v3u16;
2930
typedef core::vector3d<s32> v3s32;
30-
31-
namespace std
32-
{
33-
template <> struct hash<v3s16>
34-
{
35-
typedef v3s16 argument_type;
36-
typedef std::size_t result_type;
37-
result_type operator()(const argument_type &s) const noexcept
38-
{
39-
// clang-format off
40-
return static_cast<size_t>((static_cast<u64>(s.X) << 20) ^
41-
(static_cast<u64>(s.Y) << 10) ^
42-
(static_cast<u64>(s.Z)));
43-
// clang-format on
44-
}
45-
};
46-
}

‎src/server/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
set(server_SRCS
22
${CMAKE_CURRENT_SOURCE_DIR}/mods.cpp
3-
${CMAKE_CURRENT_SOURCE_DIR}/serveractiveobjectmap.cpp
43
PARENT_SCOPE)

‎src/server/serveractiveobjectmap.cpp

-215
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.