if b2
if b1
mul r0.xy, r0, c0.x
texld r4, r0, s6
if !b2
mad r0.xyw, r4.xyzz, c121.x, c121.y
mad r4.xyz, r3, r3.w, r0.xyww
endif
endif
else
// ...
endif
(Thanks Benoit)
Epic failures in the game development field.
This blog covers funny/weird issues and bugs from games that happened during development.
Send your own contributions to igetyourfail at repi.se (can be anonymous if specified)
if b2
if b1
mul r0.xy, r0, c0.x
texld r4, r0, s6
if !b2
mad r0.xyw, r4.xyzz, c121.x, c121.y
mad r4.xyz, r3, r3.w, r0.xyww
endif
endif
else
// ...
endif
if (data.lights[id]._padding[1] == NOSPECULAR)
{
...
}
LRUCacheModel::~LRUCacheModel()
{
for( LRUCacheEntry* entry; entry != NULL; )
{
LRUCacheEntry* next = entry->next;
delete entry;
entry = next;
}
}
inline int MyMath::floatToIntRounded(hkReal value)
{
const hkReal lowerWhole = floor(value);
const hkReal upperWhole = ceil(value);
if((value - lowerWhole) < (upperWhole - value))
{
return floatToInt(lowerWhole + MY_EPSILON);
}
else
{
return floatToInt(upperWhole + MY_EPSILON);
}
}
bool isNumber(const char number)
{
std::string tmp;
tmp += number;
return std::string::npos != findIgnoreCase("0123456789", tmp);
}
[2009-02-18 14:24:29] Error : Game: "client" had an assert with message: 140 > 145
// round up to nearest divisible by 8
m_sceneWidth += ((m_sceneWidth&0x7) ^ 0x7) + 1;
m_sceneHeight += ((m_sceneHeight&0x7) ^ 0x7) + 1;