Re: [Super-tux-devel] indentations
Brought to you by:
wkendrick
From: Ricardo C. <ri...@ae...> - 2003-12-28 20:30:54
|
Well, I think that Tabs should be used at the begging of the line and spaces between stuff. Just like a document, where the 1st line is more inside than the rest of the paragraph. Comments and inside stuff should go for spaces. -- Tobias, in the menu.c, you should replace all NO_UPDATE by UPDATE and then remove the SDL_Flip(screen); line. This is the cause of the menu flickering, because the background is being drawn by intro.c or gameloop.c, the text entries are only drawn after and repeat the screen blitting, that was done before. Another solution would be to disable UPDATE in the intro.c and gameloop.c and keep the rest as it is. Anxious to see my level editor in the cvs :), Ricardo Em Domingo, 28 de Dezembro de 2003 19:55, o Ingo Ruhnke escreveu: > Ricardo Cruz <ri...@ae...> writes: > > Anyway, I keep thinking why are ppl so scared of the Tabs! Really, > > tabs are the best thing since sliced bread. > > The problem with tabs is that many 'clever' text-editors are just a > bit too clever handling them, ie. Emacs converts tabs and spaces from > one to another pretty much randomly (have a tab and go backspace -> > you get 7 spaces instead of removing the tab), resulting in a huge > mess if viewed in another editor or with anotehr tab-width. One can > fix Emacs to not do that, but its really far from streight forward. > After all the easiest way to 'fix' this is to completly avoid tabs and > use spaces always, this of course removes the freedom to use another > tab width, but ensures that the sources looks everywhere the same > (which is good or bad, depending on if you like the source look). -- Brain damage is all in your head. -- Karl Lehenbauer |