diff options
author | Steven Noonan <steven@uplinklabs.net> | 2009-10-01 19:31:54 -0700 |
---|---|---|
committer | Steven Noonan <steven@uplinklabs.net> | 2009-10-01 19:35:22 -0700 |
commit | b4e0ccc78a6f5c5951d1267b683bdcc845b24093 (patch) | |
tree | 6e181ea32d1ecd0b2955ded58d7512962e04797d /crawl-ref/source/Crawl.xcodeproj | |
parent | 2ba02b60b6bcd926aaf651cfaf0e9f514d09abfd (diff) | |
download | crawl-ref-b4e0ccc78a6f5c5951d1267b683bdcc845b24093.tar.gz crawl-ref-b4e0ccc78a6f5c5951d1267b683bdcc845b24093.zip |
tilesdl.cc: fix segfault caused by negative Y-value
In my case, the cause was a crawlrc with these values:
view_max_width=80
view_max_height=70
I did a USE_TILE build, ran it, and the value of
crawl_view.msgsz.y became negative, causing a rather nasty
segfault later in initialization.
I'm pretty sure that using 'std::max' here is not the best
solution, but it at least avoids the negative number case.
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref/source/Crawl.xcodeproj')
0 files changed, 0 insertions, 0 deletions