Permalink
Browse files

- more direct native entry points.

- disallow bool as a return value for direct native calls because it only sets the lowest 8 bits of the return register.
- changed return type for several functions from bool to int where the return type was the only thing blocking use as direct native call.
  • Loading branch information...
coelckers committed Dec 5, 2018
1 parent 2e7e6cb commit 494a11392063b5005b6eb4f240792f93f522e8b3
@@ -484,7 +484,7 @@ size_t DObject::PointerSubstitution (DObject *old, DObject *notOld)
//
//==========================================================================
size_t DObject::StaticPointerSubstitution (AActor *old, AActor *notOld)
void DObject::StaticPointerSubstitution (AActor *old, AActor *notOld)
{
DObject *probe;
size_t changed = 0;
@@ -521,8 +521,6 @@ size_t DObject::StaticPointerSubstitution (AActor *old, AActor *notOld)
{
if (sec.SoundTarget == old) sec.SoundTarget = notOld;
}
return changed;
}
//==========================================================================
@@ -254,7 +254,7 @@ class DObject
// This is only needed for swapping out PlayerPawns and absolutely nothing else!
virtual size_t PointerSubstitution (DObject *old, DObject *notOld);
static size_t StaticPointerSubstitution (AActor *old, AActor *notOld);
static void StaticPointerSubstitution (AActor *old, AActor *notOld);
PClass *GetClass() const
{
Oops, something went wrong.

0 comments on commit 494a113

Please sign in to comment.