Editor & more than 255 weapons [message #359949]
|
Thu, 07 May 2020 13:10
|
|
Billy Bones |
Messages:2
Registered:May 2020 |
|
|
Hello World.
I'm not a programmer, just a little versed. But I need your help.
If I add more than 255 weapons, the Editor freezes at the very beginning. Black screen and nothing happens.
Changes:
Item Types.h:
...
UINT16 UbClassIndex;
...
#define FIRST_WEAPON 1
#define FIRST_AMMO (FIRST_WEAPON + 257)
#define FIRST_EXPLOSIVE (FIRST_AMMO + 60)
#define FIRST_ARMOUR (FIRST_EXPLOSIVE + 30)
#define FIRST_MISC (FIRST_ARMOUR + 40)
#define FIRST_KEY (FIRST_MISC + 70)
Items.c:
...
{IC_GUN, 257, TARGETCURS, CONDBUL, ...
Weapons.c
...
Added required number of lines
But if I do #define FIRST_AMMO (FIRST_WEAPON + 255) with the corresponding changes, then the Editor
works fine.
What am I doing wrong?
Report message to a moderator
|
Civilian
|
|
|