The Dink Network

Reply to Re: A New Version of Dink?

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
February 9th 2013, 01:09 AM
goblins.gif
Update! Original post edited for clarity.

I fixed the loopmidi() freeze at the beginning of DMODs! It was missing a return statement...which for some reason only caused problems in Main.c and not elsewhere.

Not sure if anyone cares too much, but this was how it was fixed:

if (compare(ev[1], "loopmidi"))
{
     h = &h[strlen(ev[1])];
     int p[20] = {1,0,0,0,0,0,0,0,0,0};  
     if (get_parms(ev[1], script, h, p))
     {
          if ( nlist[0] > 0 )
          {
              mLoopMidi = true;
          }
          else
          {
              mLoopMidi = false;
          }
     }
     //TheNewGuy: this was missing, causing errors at startup!
     strcpy(s, h);  
     return(0);
}