Hi all, i have a strange problem with SDL, im making a game, and all is perfect until now, i put some ints that i need:
int SpecialWeapon = 1;
int anything = 0;
and change the movement speed, now i recompile the source and wtf i only can see a black screen, but the game works because i listen the music ingame.
If i recompile the source for linux all is perfect and the screen shows the game properly.
why sometimes, when i do a few changes i only get a black screen, while in linux all work properly?
I recently encountered similar problems. adding some obscure code just resulted in me getting a black screen. It was fixed by removing -02 optimization flag from my makefile.
Might be worth a shot.
Kojima wrote:I recently encountered similar problems. adding some obscure code just resulted in me getting a black screen. It was fixed by removing -02 optimization flag from my makefile.
Might be worth a shot.
thanks ill try it, in fact when i compile for linux i dont have -O2 flag ;)