I've checked the file 'Air.cpp' and it really confuses me. I want to find out how pressure works in this game. Can someone "translate" this c++ code into English for me??? Thanks.
EDIT: I probably should've put this in my 'Pressure Cells' thread. Stupid me
There's a rewritten version which has been split up into separate functions and has a few more comments at https://github.com/jacksonmj/The-Powder-Toy/blob/master/src/simulation/air/AirSimulator_v1.cpp#L611
The kernel thing is a 2D Gaussian blur which skips air blocking walls.