Quote Originally Posted by paul_nicholls View Post
Woo Hoo!!

After some fiddling around, I have now gotten my fluid sim working just like the online demo (I think! LOL)
I thought I should have a look at your code to see what I did wrong, but I am looking at your code and I don't get it. What code is working? I am looking in SimCompression_pde.pas, and it looks like... well, I must be looking at the wrong place because this can't be Pascal code:

if ( blocks[x][y] := GROUND) then continue;

That can NOT be a conversion of

if ( blocks[x][y] == GROUND) continue;

No, I must be looking in the wrong place. Is your archive really your working version? If it is, where is the code for the simulation?

I also note that if I change "continue" to "cycle" in my code, my code seem to get slightly closer to correct, so is really "continue" the same in both languages?