Skip to content

Commit

Permalink
Fixed RadarMap update
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczy93 committed Nov 6, 2023
1 parent 78688c0 commit 6b70972
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CentrED/Map/RadarMap.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using CentrED.Client;
using ClassicUO.Utility;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace CentrED.Map;
Expand Down Expand Up @@ -41,6 +42,6 @@ private unsafe void RadarData(ushort[] data) {
}

private void RadarUpdate(ushort x, ushort y, ushort color) {
_texture.SetData(new []{color}, x * _texture.Height + y,1);
_texture.SetData(0, new Rectangle(x, y,1,1), new []{HuesHelper.Color16To32(color) | 0xFF_00_00_00},0,1);
}
}

0 comments on commit 6b70972

Please sign in to comment.