farbrausch / fr_public

Farbrausch demo tools 2001-2011
3.38k stars 346 forks source link

Chunks fix #46

Closed wzman closed 12 years ago

wzman commented 12 years ago

Since face Select variable is sU8 - chunks op no longer works.

DivideInChunks calculation use as trick the Select variable to temporaly store index, with a range to -1..X (signed 32 bits). This trick no longer works since its a sU8.

I suggest this pull to fix chunks operator (without many changes and works) :

rygorous commented 12 years ago

No, that hack with re-using Select to store the chunk index is totally horrible anyway, and recreating that situation again is a cure worse than the disease.

I'll fix this properly tomorrow...