diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/zvision/render_table.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/zvision/render_table.cpp b/engines/zvision/render_table.cpp index 1f3e556090..5fd7a16cac 100644 --- a/engines/zvision/render_table.cpp +++ b/engines/zvision/render_table.cpp @@ -200,7 +200,7 @@ void RenderTable::generateTiltLookupTable() { for (uint y = 0; y < _numRows; y++) { // Add an offset of 0.01 to overcome zero tan/atan issue (horizontal line on half of screen) - // Alpha represents the horizontal angle between the viewer at the center of a cylinder and y + // Alpha represents the vertical angle between the viewer at the center of a cylinder and y float alpha = atan(((float)y - halfHeight + 0.01f) / cylinderRadius); // To get y in cylinder coordinates, we just need to calculate the arc length |