Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Bing, DotBot

Members: 0
Guests: 8
Stats
Files
Topics
Posts
Members
Newest Member
481
3,739
19,386
622
ignatius
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SmaugFUSS » Fix for a popular snippet (mi...
Forum Rules | Mark all | Recent Posts

Fix for a popular snippet (might be obvious)
< Newer Topic :: Older Topic > mpsleep

Pages:<< prev 1 next >>
Post is unread #1 May 6, 2003, 7:05 am
Go to the top of the page
Go to the bottom of the page

Olcerin

GroupMembers
Posts30
JoinedMar 6, 2003

I wanted to post this, since being a newbie coder myself I know that some things "obvious" to experienced coders might not be so obvious to some of us. Especially pertaining to mud_prog.c! *spits

In case someone wants to use the mpsleep snippet I found a fix for a big problem I had with it (when it works it's awesome btw). The fix is needed in the version headed with this:
mpsleep - a snippet for the SMAUG mud system by Rasmus Brosboel - 03171999

Fix this or it'll skip ELSE statements in mudprogs that contain the command mpsleep, and it was screwing up nested if's a bit that didn't have ELSE's on occasion, too.
This code is in the snippet, to go into mud_prog.c :
      for (count = 0; count < MAX_IFS; count++) 
     { 
       /*  for (count2 = 0; count2 < DO_ELSE; count2++) */
         /* line above the culprit to replace */ 
  for (count2 = 0; count2 <= DO_ELSE; count2++) 
         /* line above what to replace it with */
         ifstate[count][count2] = 
         current_mpsleep->ifstate[count][count2]; 
     } 


Yea, I know, with that variable name it's almost a no-brainer. But ask any noob coder such as myself who's browsed mud_prog.c ... finding that no-brainer wasn't a super easy task :P Anyways, if you use/plan to use the snip, might wanna check that. bye bye
       
Pages:<< prev 1 next >>