]> Skullheadx's Git Forge - Pygame-Jam.git/commitdiff
Fix
authorlbcmk <30442978+lbcmk@users.noreply.github.com>
Wed, 13 Jul 2022 21:10:56 +0000 (17:10 -0400)
committerlbcmk <30442978+lbcmk@users.noreply.github.com>
Wed, 13 Jul 2022 21:10:56 +0000 (17:10 -0400)
UI/Dialogue.py

index 158146661ce82ad0c4d5c9b561319316109e5d9e..75b0165dca279ace2e83677b64d0fc4921b3de34 100644 (file)
@@ -42,7 +42,7 @@ class DialogueUI:
             X, Y = 0, 0
             try:
                 if(self.dialogue_list[self.char][3] == True):
-                    X = get_display_point(self.dialogue_list[self.char][2].position)[0] + agent.width / 2
+                    X = get_display_point(self.dialogue_list[self.char][2].position)[0] + self.dialogue_list[self.char][2].width / 2
                     Y = get_display_point(self.dialogue_list[self.char][2].position)[1]
                 else:
                     X, Y = get_display_point((self.dialogue_list[self.char][2][0], self.dialogue_list[self.char][2][1]))