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)

Monday, November 9, 2009

Why name variables when you can use padding?


if (data.lights[id]._padding[1] == NOSPECULAR)
{
...
}

(Thanks Tomasz)

2 comments:

liam.list said...

A better would have been hereBeMagicWhichNoMortalShallGazeUponOrBeForeverBlinded_youHaveBeenWarnedWeakling_arrrrWhoSwitchedOutTheLights :)

jvalenzu said...

No doubt the definition is in one of those headers that forces everything to recompile.

Followers