- Update scripting branch to trunk.
SVN r3758 (scripting)
This commit is contained in:
commit
562cf04db2
614 changed files with 63691 additions and 31256 deletions
|
|
@ -46,7 +46,6 @@
|
|||
#include "w_wad.h"
|
||||
#include "templates.h"
|
||||
#include "r_defs.h"
|
||||
#include "r_draw.h"
|
||||
#include "a_pickups.h"
|
||||
#include "s_sound.h"
|
||||
#include "cmdlib.h"
|
||||
|
|
@ -143,6 +142,11 @@ PClassActor *CreateNewActor(const FScriptPosition &sc, FName typeName, FName par
|
|||
ti = static_cast<PClassActor *>(parent->CreateDerivedClass (typeName, parent->Size));
|
||||
}
|
||||
|
||||
// Copy class lists from parent
|
||||
ti->ForbiddenToPlayerClass = parent->ForbiddenToPlayerClass;
|
||||
ti->RestrictedToPlayerClass = parent->RestrictedToPlayerClass;
|
||||
ti->VisibleToPlayerClass = parent->VisibleToPlayerClass;
|
||||
|
||||
if (parent->DamageFactors != NULL)
|
||||
{
|
||||
// copy damage factors from parent
|
||||
|
|
@ -371,6 +375,8 @@ void LoadActors ()
|
|||
cycle_t timer;
|
||||
|
||||
timer.Reset(); timer.Clock();
|
||||
StateParams.Clear();
|
||||
GlobalSymbols.ReleaseSymbols();
|
||||
FScriptPosition::ResetErrorCounter();
|
||||
InitThingdef();
|
||||
lastlump = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue