Help? Someone?

Surely someone must know how to fix this Cal problem... I KNOW what the problem is I just don't know how to fix it. My math skills aren't the best
Third Update
Coding is kinda weird at the moment... Mainly because I'm very tempted to do stuff the easy hacky way and not take the time to do it all properly. Then I go back later and do it properly anyhow! But I am making progress in a lot of ways
I've just done 2 test buildings. One is a barracks and the other is a vehicle factory. Of course, I'm not really a mapper and mapping buildings is very different to map mapping (If that makes sense!

) so they may not looks as good as what I'd like them to but they'll do. Plus they'll give me something real to work with
I'm thinking of making a simple standalone 2D map editor for my game... It'll use code from an RTS programming book I own. So it won't be open source but if people want to use it's map format for their own projects then that is definately possible.
One question you may ask is why am I using a 2D map editor for a 3D game

Well, because of DR3's map loader and map format, this is possible and relatively easy to do. And it has one VERY major advantage

It'll make it possible to add import functions for map files from other strategy games

eg. RA1, RA2, TA etc...
Of course, this is only an idea I've been considering but it may just work...
There'll be regular updates here, however there will be less code stuff and more other stuff

I've decided I haven't really nailed down DR3 well enough so I'll be doing alot of planning and just generally chucking ideas around. But I still will post code snippets and stuff.
PS. Help?

If someone could fix that Cal problem it would be MUCH appreciated.