On Mon, 11 Dec 1995, Chris Crooker wrote: > > I was just wondering if my theory here works. After the place > where height is determined in db.c for new characters, i added a > switch(GET_RACE(ch)) because i added races and i want the heights to > differ. Can i just use: > > switch (GET_RACE(ch)) { > case RACE_HUMAN; > break; > case RACE_BLAH; > ch->player.height *= .75; > break; > etc.. > > This is just an example but will the multiplying by decimal work or am i > doing this wrong? > You might want to change that to: ch->player.height = (int)((float)ch->player.height * .75); It usually doesn't matter, but floating point math is always freaky. Better to do: ch->player.height *= 3; ch->player.height /= 4; ___________________________________________________________________________ icarus@Crocker.COM http://www.crocker.com/~icarus Berserker Dragon -=={UDIC}==- Ultima Dragons, Internet Chapter Lord Eric P. McCoy IV Knights of the Cosmos ***************************************************************************
This archive was generated by hypermail 2b30 : 12/07/00 PST