project_files/HedgewarsMobile/Classes/MapPreviewButtonView.m
branchios-revival
changeset 11244 57891137ffef
parent 11148 064a53861759
child 12877 00215a7ec5f5
equal deleted inserted replaced
11243:a954853e9c00 11244:57891137ffef
    56 }
    56 }
    57 
    57 
    58 #pragma mark -
    58 #pragma mark -
    59 #pragma mark preview
    59 #pragma mark preview
    60 -(int) sendToEngine:(NSString *)string {
    60 -(int) sendToEngine:(NSString *)string {
    61     unsigned char length = [string length];
    61     unsigned char length = [string lengthOfBytesUsingEncoding:NSUTF8StringEncoding];
    62 
    62 
    63     SDLNet_TCP_Send(csd, &length, 1);
    63     SDLNet_TCP_Send(csd, &length, 1);
    64     return SDLNet_TCP_Send(csd, [string UTF8String], length);
    64     return SDLNet_TCP_Send(csd, [string UTF8String], length);
    65 }
    65 }
    66 
    66