Skip to content

Commit 971ef17

Browse files
author
Roberto De Ioris
committed
added support for unreal 4.14
1 parent 75f03b2 commit 971ef17

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Source/UnrealEnginePython/Private/UEPyPlayer.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ PyObject *py_ue_get_num_players(ue_PyUObject *self, PyObject * args) {
5959
if (!world)
6060
return PyErr_Format(PyExc_Exception, "unable to retrieve UWorld from uobject");
6161

62-
AGameMode *game_mode = world->GetAuthGameMode();
62+
AGameModeBase *game_mode = world->GetAuthGameMode();
6363
if (!game_mode)
6464
return PyErr_Format(PyExc_Exception, "unable to retrieve GameMode from world");
6565

66-
return PyLong_FromLong(game_mode->NumPlayers);
66+
return PyLong_FromLong(game_mode->GetNumPlayers());
6767
}
6868

6969
PyObject *py_ue_get_num_spectators(ue_PyUObject *self, PyObject * args) {
@@ -74,10 +74,10 @@ PyObject *py_ue_get_num_spectators(ue_PyUObject *self, PyObject * args) {
7474
if (!world)
7575
return PyErr_Format(PyExc_Exception, "unable to retrieve UWorld from uobject");
7676

77-
AGameMode *game_mode = world->GetAuthGameMode();
77+
AGameModeBase *game_mode = world->GetAuthGameMode();
7878
if (!game_mode)
7979
return PyErr_Format(PyExc_Exception, "unable to retrieve GameMode from world");
8080

81-
return PyLong_FromLong(game_mode->NumSpectators);
81+
return PyLong_FromLong(game_mode->GetNumSpectators());
8282
}
8383

Source/UnrealEnginePython/Public/PythonComponent.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ UPythonComponent::UPythonComponent()
77
{
88
// Set this component to be initialized when the game starts, and to be ticked every frame. You can turn these features
99
// off to improve performance if you don't need them.
10-
bWantsBeginPlay = true;
1110
PrimaryComponentTick.bCanEverTick = true;
1211

1312
PythonTickForceDisabled = false;

0 commit comments

Comments
 (0)