Fix clipboard copy in C client

This commit is contained in:
UnknownShadow200 2018-04-23 16:33:46 +10:00
parent 1b5276bae5
commit 7f2b24b560
3 changed files with 5 additions and 6 deletions

View File

@ -336,9 +336,4 @@ namespace ClassicalSharp {
edgeLevel = Math.Max(0, game.World.Env.EdgeHeight);
}
}
public struct ChunkPartInfo {
public int VbId, VerticesCount, SpriteCount;
public ushort LeftCount, RightCount, FrontCount, BackCount, BottomCount, TopCount;
}
}

View File

@ -10,6 +10,11 @@ using BlockID = System.UInt16;
namespace ClassicalSharp.Renderers {
public struct ChunkPartInfo {
public int VbId, VerticesCount, SpriteCount;
public ushort LeftCount, RightCount, FrontCount, BackCount, BottomCount, TopCount;
}
public class ChunkInfo {
public ushort CentreX, CentreY, CentreZ;

View File

@ -499,7 +499,6 @@ void Window_GetClipboardText(STRING_TRANSIENT String* value) {
void Window_SetClipboardText(STRING_PURE String* value) {
/* retry up to 10 times*/
Int32 i;
value->length = 0;
for (i = 0; i < 10; i++) {
if (!OpenClipboard(win_Handle)) {
Platform_ThreadSleep(100);