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

Members: 0
Guests: 15
Stats
Files
Topics
Posts
Members
Newest Member
481
3,740
19,388
628
PabloL3189
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,643
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 >>