mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 02:40:47 +02:00
Fix Clickable signs
This commit is contained in:
@@ -2366,16 +2366,15 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
char buff[256];
|
char buff[256];
|
||||||
int sldr;
|
int sldr;
|
||||||
char *buff2;
|
char *buff2 = NULL;
|
||||||
|
|
||||||
memset(buff, 0, sizeof(buff));
|
memset(buff, 0, sizeof(buff));
|
||||||
|
|
||||||
for(sldr=3; signs[signi].text[sldr] != '|'; sldr++)
|
for(sldr=3; signs[signi].text[sldr] != '|'; sldr++)
|
||||||
buff[sldr-3] = signs[signi].text[sldr];
|
buff[sldr-3] = signs[signi].text[sldr];
|
||||||
|
|
||||||
buff2 = malloc(sldr-2);
|
buff[sldr-3] = '\0';
|
||||||
memset(buff2, 0, sldr-2);
|
buff2 = strdup(buff);
|
||||||
memcpy(&buff2, &buff, sldr-3);
|
|
||||||
open_ui(vid_buf, buff2, 0);
|
open_ui(vid_buf, buff2, 0);
|
||||||
free(buff2);
|
free(buff2);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user