mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-26 18:26:23 +00:00
修复
This commit is contained in:
@@ -31,7 +31,7 @@ namespace JNGame.Sync.State.Tile
|
||||
{
|
||||
if (xTuple.X >= 0 && xTuple.Y >= 0)
|
||||
{
|
||||
return xTuple.Y <= Tiles.Length && xTuple.X <= Tiles[0].Length;
|
||||
return xTuple.Y < Tiles.Length && xTuple.X < Tiles[0].Length;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
@@ -3,6 +3,7 @@ using System.Linq;
|
||||
using System.Net;
|
||||
using System.Threading.Tasks;
|
||||
using AppGame.Systems;
|
||||
using DotRecast.Core.Collections;
|
||||
using Game.Input;
|
||||
using Game.JNGFrame.View;
|
||||
using Game.JNGState.Logic.Data;
|
||||
@@ -120,7 +121,7 @@ namespace AppGame.Sync
|
||||
List<int> ids = GetTileGridIndex(PlayerPos.Value);
|
||||
|
||||
ids.ForEach(AddTileShow);
|
||||
TileShow.ForEach(id =>
|
||||
TileShow.ToArray().ForEach(id =>
|
||||
{
|
||||
if (!(ids.Contains(id)))
|
||||
{
|
||||
|
Reference in New Issue
Block a user