From 26f70331de509bca86dc4868ffe50ed90933639f Mon Sep 17 00:00:00 2001 From: jacob1 Date: Thu, 3 Aug 2017 23:12:03 -0400 Subject: [PATCH] fix debug thing breaking pressure display in HUD, fixes #494 --- src/simulation/Simulation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index 53ec385c3..3b52e438b 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -540,7 +540,7 @@ SimulationSample Simulation::GetSample(int x, int y) { sample.WallType = bmap[y/CELL][x/CELL]; } - sample.AirPressure = (int)air->bmap_blockair[y/CELL][x/CELL]; + sample.AirPressure = pv[y/CELL][x/CELL]; sample.AirTemperature = hv[y/CELL][x/CELL]; sample.AirVelocityX = vx[y/CELL][x/CELL]; sample.AirVelocityY = vy[y/CELL][x/CELL];