|Date:||22-January-2006 at 11:06||Lines Added:||14|
|Repository:||:pserver:anonymous:@gametable.cvs.sourceforge.net:/cvsroot/gametable gametable/||Lines Removed:||2|
|Commit Comment:||Found and fixed the problem that was generating infinite-sized pogs.
Any pog smaller than 64x64 was face size 0. That was then divided by as
part of getting the new size when the user resized the pog. Unbelievably,
when you divide a float by 0, it doesn't throw an exception, but rather
sets the result to the maximum float value (2.7 billion). wtf!?
Anyway. It now treats all pogs smaller than 1 square as being 1 square
for scaling purposes. This isn't ideal casue it makes pogs under 1 unit
scale unexpectedly (tell a 1/2 square pog to become 2 squares, it
becomes 1 square, etc.)
But it's better than the complete destruction of the mapstate that
was occurring before, and I didn't want to change that stuff too much
cause Dave has a plan in mind over there.
|Language||Code Added||Code Removed||Comments Added||Comment Removed||Blanks Added||Blanks Removed|
|File||Language||Code Added||Code Removed||Comments Added||Comment Removed||Blanks Added||Blanks Removed|
Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.