mcedit/mcedit — pull request #227 by Dav1dde (2012-12-25 11:20:58+00:00)
Title: fixed a possible TypeError when loading a world

The exception:

```python
[ERROR][mcedit.py:1020]:An unhandled error occured.
Traceback (most recent call last):
File "mcedit.py", line 1016, in main
MCEdit.main()
File "mcedit.py", line 960, in main
rootwidget.run()
File "/home/dav1d/ftbla/mcedit/albow/root.py", line 106, in run
self.run_modal(None)
File "/home/dav1d/ftbla/mcedit/albow/root.py", line 159, in run_modal
self.gl_draw_all(self, (0, 0))
File "/home/dav1d/ftbla/mcedit/albow/widget.py", line 730, in gl_draw_all
subwidget.gl_draw_all(root, suboffset)
File "/home/dav1d/ftbla/mcedit/albow/widget.py", line 730, in gl_draw_all
subwidget.gl_draw_all(root, suboffset)
File "/home/dav1d/ftbla/mcedit/albow/widget.py", line 730, in gl_draw_all
subwidget.gl_draw_all(root, suboffset)
File "/home/dav1d/ftbla/mcedit/albow/widget.py", line 730, in gl_draw_all
subwidget.gl_draw_all(root, suboffset)
File "/home/dav1d/ftbla/mcedit/albow/widget.py", line 727, in gl_draw_all
self.gl_draw_self(root, offset)
File "/home/dav1d/ftbla/mcedit/albow/openglwidgets.py", line 23, in gl_draw_self
self.gl_draw_viewport()
File "/home/dav1d/ftbla/mcedit/albow/openglwidgets.py", line 28, in gl_draw_viewport
self.setup_matrices()
File "/home/dav1d/ftbla/mcedit/albow/openglwidgets.py", line 37, in setup_matrices
self.setup_modelview()
File "/home/dav1d/ftbla/mcedit/leveleditor.py", line 1253, in setup_modelview
self.setModelview()
File "/home/dav1d/ftbla/mcedit/leveleditor.py", line 416, in setModelview
look += self.cameraVector
TypeError: Cannot cast ufunc add output from dtype('float64') to dtype('int64') with casting rule 'same_kind'
```