Skip to content
Snippets Groups Projects
Commit 4d06643f authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Allow text strings to be identified by number (instead of ID)

for those that want to use cryptic numbers rather than human-readable names.
parent 3560ebc0
Branches
Tags
1 merge request!455Update branch with changes from master
......@@ -41,6 +41,8 @@ char * readtext(long *line, FILE *stream, long dflt);
int get_text_num(const char* id)
{
int i;
if (isdigit(*id))
return atoi(id);
for (i = 0; i < TOTAL_TEXT; ++i)
if (strcmp(text_id[i], id) == 0)
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment