ref: 3e8dbce97cd4b03b43f226aaf406b8809dba998b
parent: e8304ea686d212ad118f760dc9e6df5167027272
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Wed Dec 9 08:26:09 EST 2020
just print the song name without doing any stupid crap
--- a/itdec.c
+++ b/itdec.c
@@ -299,7 +299,6 @@
{
it_engine *ite;
char *s;
- int i;
ARGBEGIN{
case 's':
@@ -316,12 +315,8 @@
D_LoadIT(ite, 0);
Music_PlaySong(ite, 0);
s = (char*)ite->hdr.SongName;
- for(i = sizeof(ite->hdr.SongName)-1; i >= 0 ; i--){
- if(s[i] == ' ')
- s[i] = 0;
- }
if(*s != 0)
- fprint(2, "%s\n", s);
+ fprint(2, "%.*s\n", sizeof(ite->hdr.SongName), s);
if(pos > 0.0)
fprint(2, "time: %g\n", pos);
while(ite->PlayMode != 0)