mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-29 23:22:32 +00:00
Post-UDB-merge fixes
This commit is contained in:
parent
f4506b22dc
commit
e5cbadda91
2 changed files with 6 additions and 2 deletions
|
@ -566,7 +566,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
}
|
}
|
||||||
|
|
||||||
// Texture offset change
|
// Texture offset change
|
||||||
public override void OnChangeTextureOffset(int horizontal, int vertical, bool doSurfaceAngleCorrection)
|
public override bool OnChangeTextureOffset(int horizontal, int vertical, bool doSurfaceAngleCorrection)
|
||||||
{
|
{
|
||||||
if ((General.Map.UndoRedo.NextUndo == null) || (General.Map.UndoRedo.NextUndo.TicketID != undoticket))
|
if ((General.Map.UndoRedo.NextUndo == null) || (General.Map.UndoRedo.NextUndo.TicketID != undoticket))
|
||||||
undoticket = mode.CreateUndo("Change texture offsets");
|
undoticket = mode.CreateUndo("Change texture offsets");
|
||||||
|
@ -602,6 +602,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
//mxd. Update linked effects
|
//mxd. Update linked effects
|
||||||
SectorData sd = mode.GetSectorDataEx(Sector.Sector);
|
SectorData sd = mode.GetSectorDataEx(Sector.Sector);
|
||||||
if (sd != null) sd.Reset(true);
|
if (sd != null) sd.Reset(true);
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
|
@ -269,7 +269,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
}
|
}
|
||||||
|
|
||||||
// Texture offset change
|
// Texture offset change
|
||||||
public override void OnChangeTextureOffset(int horizontal, int vertical, bool doSurfaceAngleCorrection)
|
public override bool OnChangeTextureOffset(int horizontal, int vertical, bool doSurfaceAngleCorrection)
|
||||||
{
|
{
|
||||||
if ((General.Map.UndoRedo.NextUndo == null) || (General.Map.UndoRedo.NextUndo.TicketID != undoticket))
|
if ((General.Map.UndoRedo.NextUndo == null) || (General.Map.UndoRedo.NextUndo.TicketID != undoticket))
|
||||||
undoticket = mode.CreateUndo("Change texture offsets");
|
undoticket = mode.CreateUndo("Change texture offsets");
|
||||||
|
@ -305,6 +305,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
//mxd. Update linked effects
|
//mxd. Update linked effects
|
||||||
SectorData sd = mode.GetSectorDataEx(Sector.Sector);
|
SectorData sd = mode.GetSectorDataEx(Sector.Sector);
|
||||||
if (sd != null) sd.Reset(true);
|
if (sd != null) sd.Reset(true);
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
Loading…
Reference in a new issue