Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
By GatewaySysop
Bug in do_drag( )
Oct 8, 2017, 12:40 am
By GatewaySysop
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Beastmaster 6D sound files
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Yahoo!, Yandex, Google

Members: 0
Guests: 7
Stats
Files
Topics
Posts
Members
Newest Member
476
3,704
19,231
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Bugfix Lists » SWR FUSS Bugfix List » [Bug] There are lingering vnu...
Forum Rules | Mark all | Recent Posts

[Bug] There are lingering vnum uses that still expect short int
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Sep 12, 2005, 6:40 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Bug: There are lingering vnum uses that still expect short int
Danger: High - Data corruption
Found by: Remcon
Fixed by: Remcon

---

mud.h

In struct pc_data, locate:
   short r_range_lo; /* room range */
   short r_range_hi;
   short m_range_lo; /* mob range  */
   short m_range_hi;
   short o_range_lo; /* obj range  */
   short o_range_hi;


Change to:
   int r_range_lo; /* room range */
   int r_range_hi;
   int m_range_lo; /* mob range  */
   int m_range_hi;
   int o_range_lo; /* obj range  */
   int o_range_hi;


Locate:
void teleport args( ( CHAR_DATA * ch, short room, int flags ) );


Change to:
void teleport( CHAR_DATA * ch, int room, int flags );


act_move.c, teleport

Locate:
void teleport( CHAR_DATA * ch, short room, int flags )


Change to:
void teleport( CHAR_DATA * ch, int room, int flags )


shops.c, do_makeshop

Locate:
   SHOP_DATA *shop;
   short vnum;
   MOB_INDEX_DATA *mob;


Change to:
   SHOP_DATA *shop;
   int vnum;
   MOB_INDEX_DATA *mob;


do_shopset

Locate:
   SHOP_DATA *shop;
   MOB_INDEX_DATA *mob, *mob2;
   char arg1[MAX_INPUT_LENGTH];
   char arg2[MAX_INPUT_LENGTH];
   short vnum;
   int value;


Change to:
   SHOP_DATA *shop;
   MOB_INDEX_DATA *mob, *mob2;
   char arg1[MAX_INPUT_LENGTH];
   char arg2[MAX_INPUT_LENGTH];
   int vnum, value;


do_shopstat

Locate:
   SHOP_DATA *shop;
   MOB_INDEX_DATA *mob;
   short vnum;


Change to:
   SHOP_DATA *shop;
   MOB_INDEX_DATA *mob;
   int vnum;


do_makerepair

Locate:
   REPAIR_DATA *repair;
   short vnum;
   MOB_INDEX_DATA *mob;


Change to:
   REPAIR_DATA *repair;
   int vnum;
   MOB_INDEX_DATA *mob;


do_repairset

Locate:
   REPAIR_DATA *repair;
   MOB_INDEX_DATA *mob, *mob2;
   char arg1[MAX_INPUT_LENGTH];
   char arg2[MAX_INPUT_LENGTH];
   short vnum;
   int value;


Change to:
   REPAIR_DATA *repair;
   MOB_INDEX_DATA *mob, *mob2;
   char arg1[MAX_INPUT_LENGTH];
   char arg2[MAX_INPUT_LENGTH];
   int vnum, value;


do_repairstat

Locate:
   REPAIR_DATA *repair;
   MOB_INDEX_DATA *mob;
   short vnum;


Change to:
   REPAIR_DATA *repair;
   MOB_INDEX_DATA *mob;
   int vnum;


handler.c, add_kill

Locate:
   int x;
   short vnum, track;


Change to:
   int x, vnum;
   short track;


times_killed

Locate:
   int x;
   short vnum, track;


Change to:
   int x, vnum;
   short track;


What began even before the bugfix lists got started was to cleanup the almost-done job the smaugdevs did on converting vnum functions to int from short. From time to time these things continue to get noticed, and this latest batch will fix quite a few more that got missed.
       
Pages:<< prev 1 next >>