summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-03-18 23:51:09 +0100
committerkdx <kikoodx@paranoici.org>2023-03-18 23:51:09 +0100
commitdf28588c4dca9f4e69e9bf57b7cdabc69aa6dbe0 (patch)
tree1fd1c5c63a4e0fba022b4207aa04b8d3064612a9
parent0de48dd5e42d3d4cf5418ba34b8b3cbff36f55a4 (diff)
downloadhyperultra-df28588c4dca9f4e69e9bf57b7cdabc69aa6dbe0.tar.gz
lamer bug
-rw-r--r--src/deathpart.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/deathpart.c b/src/deathpart.c
index e08f25b..1579066 100644
--- a/src/deathpart.c
+++ b/src/deathpart.c
@@ -11,7 +11,11 @@ IMPL_UPDATE() {
IMPL_DRAW() {
LZY_DrawSetColor(BLACK);
- LZY_DrawRect(this->pos[0], this->pos[1], this->width, this->height);
+ if (this->width == 1)
+ LZY_DrawPoint(this->pos[0], this->pos[1]);
+ else
+ LZY_DrawRect(this->pos[0], this->pos[1],
+ this->width, this->width);
} IMPL_END
IMPL_INIT(deathpart) {
@@ -21,5 +25,5 @@ IMPL_INIT(deathpart) {
this->vel[0] *= this->vel[0];
if (rand() % 2)
this->vel[0] *= -1;
- this->height = this->width = 1 + rand() % 2;
+ this->width = 1 + rand() % 2;
} IMPL_END