Changed type for new textimeout and texcollectrate into "int".

Please note that the "long" should be avoided in dna structs... it is a
reserved type for use in our code for pointer storage. It is 32 or 64 bits,
depending CPU architecture (pointer size).

The "long" type currently is in the makesdna.c code, and interpreted as 32
bits only, which is actually wrong yes... I should remove it or code it
correct.

BTW; this gave a warning in space.c, another case where MSVC forgives you?
:)
This commit is contained in:
Ton Roosendaal 2005-07-10 08:31:56 +00:00
parent a7cd780ebf
commit 0c89ddbf1c

@ -156,7 +156,7 @@ typedef struct UserDef {
short tb_leftmouse, tb_rightmouse;
struct SolidLight light[3];
short tw_hotspot, tw_flag, tw_handlesize, tw_size;
long textimeout, texcollectrate;
int textimeout, texcollectrate;
} UserDef;
extern UserDef U; /* from usiblender.c !!!! */