Skip to content

Commit

Permalink
MapRender: typo fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kagamia committed Mar 10, 2018
1 parent e36058d commit 1b3560f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion WzComparerR2.MapRender/FrmMapRender2.SceneRendering.cs
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ private MeshItem GetMeshBack(BackItem back)
Vector2 position = new Vector2(back.X, back.Y);

//计算水平卷动
if ((back.TileMode & TileMode.ScrollHorizontial) != 0)
if ((back.TileMode & TileMode.ScrollHorizontal) != 0)
{
position.X += ((float)back.Rx * 5 * back.View.Time / 1000) % cx;// +this.Camera.Center.X * (100 - Math.Abs(this.rx)) / 100;
}
Expand Down
4 changes: 2 additions & 2 deletions WzComparerR2.MapRender/Patches2/BackItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ private static TileMode GetBackTileMode(int type)
case 1: return TileMode.Horizontal;
case 2: return TileMode.Vertical;
case 3: return TileMode.BothTile;
case 4: return TileMode.Horizontal | TileMode.ScrollHorizontial;
case 4: return TileMode.Horizontal | TileMode.ScrollHorizontal;
case 5: return TileMode.Vertical | TileMode.ScrollVertical;
case 6: return TileMode.BothTile | TileMode.ScrollHorizontial;
case 6: return TileMode.BothTile | TileMode.ScrollHorizontal;
case 7: return TileMode.BothTile | TileMode.ScrollVertical;
default: return TileMode.None;
}
Expand Down
2 changes: 1 addition & 1 deletion WzComparerR2.MapRender/TileMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public enum TileMode
Horizontal = 1,
Vertical = 2,
BothTile = Horizontal | Vertical,
ScrollHorizontial = 4,
ScrollHorizontal = 4,
ScrollVertical = 8
}
}

0 comments on commit 1b3560f

Please sign in to comment.