I was doing some experiments with the pressure system and noticed this line of code (air.cpp:193):
pv[y][x] *= AIR_PLOSS;
Does anyone know the reason for this?
I'm not sure I understand what you mean. I'm confused.
Whitout that line of code, pressure works as one might expect it to work (i.e. equalized pressure in the room, whatever the shape of that room is).
At the opposite, with that line of code enabled, I cannot have the expected behavior from the pressure.
Well, as I mentioned, there is: I simply commented that line of code and everything seems to be working fine. No pressure loss.
But I guess this line of code exists for a reason I'm not aware of, hence my question.
a 10x10 ttan square with 256 pressure after a minute will have around 230 pressure, not too hard to understand
@phox (View Post)
As Lockheedmartin said it, the question was about the why, not the what. That being said, you should not presume what is too hard or not for others to understand... Know that you are a genius compare to some... as well as the opposite ;).
@Lockheedmartin (View Post)
Considering I disabled the decay, I'll keep that potential instability in mind.
Thanks for the info.
sorry for my reply i wasn't trying to sound pretentious :P