25b2FIX.txt
snippets · 901 B · 2010-03-30
Compile fix for RogueMUD 2.5b2 by Famine. Fixes a missing-code error in the non-fixed download of that release only.
Download « Back to the snippets list
Name - Roguemud2.5b2 Compile Fix
Author - Famine <admin@malicex.org>
Code - Roguemud2.5b2 ONLY!
If you happen to of downloaded the non-fixed version of this code
then you will realize that it wont compile do to a missing piece of
the "Stat roll" function. Just remove the old version of the code at
the bottom of "Characters.cpp" labled "roll_temp_abils" with this.
void roll_temp_abils(CHAR_DATA *ch)
{
int roll = 0;
for (roll = 0; roll < MAX_STATS; roll++)
ch->temp_stat[roll] = dice(3, 6);
ch->roll_stat[0] = ch->temp_stat[0];
ch->roll_stat[1] = ch->temp_stat[1];
ch->roll_stat[2] = ch->temp_stat[2];
ch->roll_stat[3] = ch->temp_stat[3];
ch->roll_stat[4] = ch->temp_stat[4];
ch->roll_stat[5] = ch->temp_stat[5];
return;
}
This should fix the temp stat dice rolls and make it so you can
assign them to stats. Enjoy!