#3685: currentBuildPts: conversion to SDWORD
-------------------------------------------------+-------------------------
 Reporter:  Kreuvf                               |             Owner:
     Type:  patch (an actual patch, not a        |            Status:  new
  request for one)                               |         Milestone:
 Priority:  normal                               |  unspecified
Component:  Engine: other                        |           Version:  3.1
 Keywords:  currentBuildPts                      |  RC 2
 Blocking:                                       |        Blocked By:
                                                 |  Operating System:  All
                                                 |  /Non-Specific
-------------------------------------------------+-------------------------
 Since our mod has build points > 32767 when trying to build such
 structures weird behaviour is the result: the building process starts and
 when exceeding currentBuildPts (overflow) the progress bar becomes very
 long (see screenshot) for a split second and afterwards the structure
 starts at 0 again. It even needs to gather new energy.

 The patch adds two "D" in whole to make currentBuildPts SDWORD and to
 change one cast from (SWORD) to (SDWORD). Tested and playable.
 Interestingly in savegames currentBuildPts was/is saved as SDWORD (if I
 understand correctly). Netplay was not tested. Patch based on 3.1 RC1.
 Since I cannot select it in the "Version" field I used 3.1 RC 2. Please
 add version "other" also. No unwanted effects observed with this patch.

-- 
Ticket URL: <http://developer.wz2100.net/ticket/3685>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Warzone2100-project mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/warzone2100-project

Reply via email to