diff options
author | rodri <rgl@antares-labs.eu> | 2021-03-08 07:47:41 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2021-03-08 07:47:41 +0000 |
commit | 0c736f207ccb206e4f099186735ac4ab8d11f7b6 (patch) | |
tree | bc50f37dae0416ed07fe939b16bb7374c9a96b0e | |
parent | 5ecc14e07c5dcc40e418f450f0c34dceb7f7e326 (diff) | |
download | gamephysics-0c736f207ccb206e4f099186735ac4ab8d11f7b6.tar.gz gamephysics-0c736f207ccb206e4f099186735ac4ab8d11f7b6.tar.bz2 gamephysics-0c736f207ccb206e4f099186735ac4ab8d11f7b6.zip |
name things correctly.
-rw-r--r-- | main.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -134,16 +134,16 @@ drawbar(double v) { struct { Point2 p0, p1; - } l = { + } bar = { Pt2(-2,v,1), Pt2(2,v,1) }; char buf[32]; - line(screen, toscreen(l.p0), toscreen(l.p1), 0, 0, 0, display->white, ZP); + line(screen, toscreen(bar.p0), toscreen(bar.p1), 0, 0, 0, display->white, ZP); snprint(buf, sizeof buf, "%.3f", v); - l.p1.x += 10; - string(screen, toscreen(l.p1), display->white, ZP, font, buf); + bar.p1.x += 10; + string(screen, toscreen(bar.p1), display->white, ZP, font, buf); } void |