#4830: warcam started at distance < 0 breaks zoom when stopped
--------------------+-------------------------------------
Reporter: Forgon | Owner:
Type: bug | Status: new
Priority: normal | Milestone: unspecified
Component: other | Version: unspecified
Keywords: | Blocked By:
Blocking: | Operating System: All/Non-Specific
--------------------+-------------------------------------
Starting the warcam in debug mode at a distance < 0 and stopping it
afterwards
set the zoom to a value of approximately 2^32^ minus the negative distance
(see attached image
[raw-attachment:warcam_zoom_bug.png]).
This was a type error: The distance, a float, was stored in an uint32_t
(or
UDWORD, as defined in
[https://github.com/Warzone2100/warzone2100/blob/master/lib/framework/types.h#L103
'./lib/framework/types.h:103]'). The problem had been
introduced in
`
commit 1c580714051c3baeadea53e4c3dd494a8c10e443
Author: per <[email protected]>
Date: Tue Jan 15 22:36:51 2013 +0100
Remove zoom limits in debug mode.
'
The attached patch fixes the problem.
--
Ticket URL: <http://developer.wz2100.net/ticket/4830>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
_______________________________________________
Warzone2100-project mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/warzone2100-project