4坐座位

This commit is contained in:
2026-09-27 18:02:59 +08:00
parent 1a36f70de4
commit 4bc30fef04
30 changed files with 232 additions and 61 deletions
@@ -1556,7 +1556,8 @@ public class CreateFishManager : MonoSingleton<CreateFishManager>
// ⭐ sitPos 用击杀者座位(含人机);房主代人机击杀 Boss 时,这里传人机座位,
// 否则所有客户端都会判定为房主击杀 → 房主自己看金色(错)
int posID = killerSitPos >= 0 ? killerSitPos : currGameType.currSitData.posID;
// ⭐ 座位镜像:网络帧里的 sitPos 必须是服务端座位号,显示座位转回服务端空间
int posID = SeatMirror.ToServer(killerSitPos >= 0 ? killerSitPos : currGameType.currSitData.posID);
var sgd = new SyncGameData
{
sitPos = posID,
@@ -1588,7 +1589,8 @@ public class CreateFishManager : MonoSingleton<CreateFishManager>
{
if (coinNum == null || coinNum.Count == 0) return;
int posID = killerSitPos >= 0 ? killerSitPos : currGameType.currSitData.posID;
// ⭐ 座位镜像:网络帧里的 sitPos 必须是服务端座位号,显示座位转回服务端空间
int posID = SeatMirror.ToServer(killerSitPos >= 0 ? killerSitPos : currGameType.currSitData.posID);
var sgd = new SyncGameData
{
sitPos = posID,