#2822: Crashes on first start in wrappers.cpp:94 because of 0 resolution 
(SIGFPE)
--------------------------------------+-------------------------------
        Reporter:  glogow@…           |        Type:  bug
          Status:  new                |    Priority:  normal
       Milestone:  unspecified        |   Component:  Engine: Graphics
         Version:  git/master         |    Keywords:
Operating System:  GNU/Linux 32bit    |  Blocked By:
        Blocking:                     |
--------------------------------------+-------------------------------
 If the game is started for the first time without a config, the resolution
 is set to 0 / 0, which will crash the game at @subject because boxHeight
 will be 0 and causes a SIGFPE (divide by 0).

 The attached patch always sets a "sane" default config resolution (640 /
 480), so the game won't crash instantly on start.

-- 
Ticket URL: <http://developer.wz2100.net/ticket/2822>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to