From e255f06e02b680442630fe2f6282c791e5acfd58 Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 12 Sep 2016 10:59:25 +0200 Subject: draw only alive players --- player.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/player.lua b/player.lua index b2a73d8..53f138c 100644 --- a/player.lua +++ b/player.lua @@ -286,6 +286,8 @@ end -- Draw of `Player` function Player:draw(offset_x, offset_y, scale, debug) + -- draw only alive + if not self.alive then return end -- locals local offset_x = offset_x or 0 local offset_y = offset_y or 0 -- cgit v1.1