I've just found another crash bug, but this one was a little weird. It seems that some mods like to send invalid skin numbers for alias models; for example, a model might have only one skin, meaning that the only valid skin number is 0, but the mod might send a skin number of 1.
This is one of those things that worked - despite being wrong - in the past. With DirectQ it crashed hard owing to the skins being dynamically allocated.
Since it's not such a big deal in terms of memory I've reverted to the old static array of 32 skins, and have also gone through it at load time and pointed any skin that wasn't set back to skin 0.
So yes, I'm now bug-compatible with some mods!
Sunday, March 21, 2010
Fixing some nasty crashes
Posted by
mhquake
at
10:04 PM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment