@jpetrie, well, currently, I have nearly 1500 lines of code, I find it highly unappropriate to post it all here having you go through it all to look for the error, and like you said, I could reproduce the problem, but I already knew exactly what was the source of it, yet not the answer, hence why I only posted this. But thanks, I'll do that next time.(Btw, I just editted for noticing I wrote in the wrong error, not adding info to the problem =P)
@Zahlman, Oh, wow, that's... alot of errors you've found there >< let's see to them then...
First, I've set destx and desty to doubles because I don't move them by whole numbers, I needed the speed and distance to be exact, and therefore made them move in greater accuracy.
second, yea, I've realized that, but when I did it was already a little too late, like I said above, I have around 1500 lines of code as of now, and I really don't feel like going through all of them and fixing it, it's not really effecting the usage of the code, so I guess there's no use in doing that now either.
third, maybe this isn't so obvious from the function, the source here references to the spritesheet(Hence the source for the sprite), and draws it into it's destination(The screen), where it will be shown, that's what I meant by it.
fourth, that does make sense, but I'm using tetris blocks for this, that are obviously varying in size and appearance, furthermore, the source for all of the sprites is on one spritesheet, so I do need these extra source coordinates, and obviously, move them around after being printed to the screen, hence why destx and desty are needed, the destw and desth, however, like I said before, aren't, also, I need quite alot of these blocks, so having them all with a set source position isn't the smartest thing to do, as I'll then need to make a few classes instead of a few variables.
Thanks for trying to help though.
Thanks Gage and Omid, that seemed to fix it, but now I get a new problem, it says:
Quote:d:\mor's c++\sdl launcher\sdl launcher\main.cpp(63) : error C2761: 'void Block::drawSprite(SDL_Surface *,SDL_Surface *,int,int,int,int,double,double,int,int)' : member function redeclaration not allowed
And it points me to the line with destx, desty, destw and desth in the definition(void::drawSprite()).
Yet, how in that position, am I redeclaring the members? Aren't I'm just forward declaring them?