mirror of
https://github.com/stevenhowes/CTheEscape.git
synced 2026-05-26 15:53:29 +01:00
Mission briefing
This commit is contained in:
+14
-3
@@ -143,7 +143,7 @@ void draw_spritetext(char* text, int x, int y)
|
||||
{
|
||||
str[0] = text[i];
|
||||
|
||||
if((text[i] != ' ') && (text[i] != '\n'))
|
||||
if((text[i] != ' ') && (text[i] != '\n') && (text[i] != '~'))
|
||||
draw_sprite(str,currentx,currenty);
|
||||
|
||||
switch (text[i])
|
||||
@@ -151,6 +151,7 @@ void draw_spritetext(char* text, int x, int y)
|
||||
case 't':
|
||||
case 'i':
|
||||
case 'y':
|
||||
case '.':
|
||||
currentx += 6 + 2;
|
||||
break;
|
||||
case 'm':
|
||||
@@ -161,7 +162,17 @@ void draw_spritetext(char* text, int x, int y)
|
||||
currentx += 10 + 2;
|
||||
break;
|
||||
case ' ':
|
||||
currentx += 4 + 2;
|
||||
currentx += 6 + 2;
|
||||
break;
|
||||
case '=':
|
||||
currentx += 22 + 2;
|
||||
break;
|
||||
case '{':
|
||||
case '}':
|
||||
currentx += 26;
|
||||
break;
|
||||
case '~':
|
||||
currentx -= 2;
|
||||
break;
|
||||
default:
|
||||
currentx += 8 + 2;
|
||||
@@ -170,7 +181,7 @@ void draw_spritetext(char* text, int x, int y)
|
||||
if(text[i] == '\n')
|
||||
{
|
||||
currentx = x;
|
||||
currenty -= 32;
|
||||
currenty -= 36;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user