Fixed more unit warp
This commit is contained in:
@@ -179,6 +179,11 @@ abstract class PlayerComp implements UnitController, Entityc, Syncc, Timerc, Dra
|
||||
if(unit != Nulls.unit){
|
||||
unit.team(team);
|
||||
unit.controller(this);
|
||||
|
||||
//this player just became remote, snap the interpolation so it doesn't go wild
|
||||
if(unit.isRemote()){
|
||||
unit.snapInterpolation();
|
||||
}
|
||||
}
|
||||
|
||||
Events.fire(new UnitChangeEvent(base(), unit));
|
||||
|
||||
@@ -13,6 +13,7 @@ abstract class SyncComp implements Entityc{
|
||||
|
||||
//all these method bodies are internally generated
|
||||
void snapSync(){}
|
||||
void snapInterpolation(){}
|
||||
void readSync(Reads read){}
|
||||
void writeSync(Writes write){}
|
||||
void readSyncManual(FloatBuffer buffer){}
|
||||
|
||||
Reference in New Issue
Block a user