SilverKnightVGM / pywright

Automatically exported from code.google.com/p/pywright
0 stars 0 forks source link

Char is not casted to string in core.py #85

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In core/core.py, line 2098 char should be cast to str, so the line reads:

if str(char).strip():

Original issue reported on code.google.com by gullda...@o2.pl on 1 Aug 2011 at 10:33

GoogleCodeExporter commented 9 years ago
Also, core/libengine.py, line 3041 should be changed to:

surf = pygame.transform.scale(surf,(int(size[0]),int(size[1])))

Original comment by gullda...@o2.pl on 1 Aug 2011 at 11:40

GoogleCodeExporter commented 9 years ago
Thanks for reporting! I'm unsure about these changes however. 'char' in the 
first instance should always be a string, and 'size' in libengine should always 
be an integer alread. What were you trying to do that caused an error in these 
cases?

Original comment by saluk64007@gmail.com on 3 Aug 2011 at 7:37

GoogleCodeExporter commented 9 years ago
Hi!

The size change is needed in order to run PyWright on Ubuntu 11.04, while char 
casting fixes actual pywright games.

Original comment by gullda...@o2.pl on 8 Aug 2011 at 4:22

GoogleCodeExporter commented 9 years ago

Original comment by saluk64007@gmail.com on 11 Sep 2011 at 11:13

GoogleCodeExporter commented 9 years ago

Original comment by saluk64007@gmail.com on 31 Oct 2012 at 10:40

GoogleCodeExporter commented 9 years ago

Original comment by saluk64007@gmail.com on 16 Jan 2014 at 11:05

GoogleCodeExporter commented 9 years ago

Original comment by saluk64007@gmail.com on 20 Jan 2014 at 8:23