<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to patches</title><link>https://sourceforge.net/p/freesynd/patches/</link><description>Recent changes to patches</description><atom:link href="https://sourceforge.net/p/freesynd/patches/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sat, 22 Oct 2022 05:53:59 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/freesynd/patches/feed.rss" rel="self" type="application/rss+xml"/><item><title>#9 Windows: fix handle leak</title><link>https://sourceforge.net/p/freesynd/patches/9/?limit=25#43cd</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;assigned_to&lt;/strong&gt;: Benoit Blancard&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Benoit Blancard</dc:creator><pubDate>Sat, 22 Oct 2022 05:53:59 -0000</pubDate><guid>https://sourceforge.net5fb72038e47bd28f004cea144f5e112b9a76f245</guid></item><item><title>#9 Windows: fix handle leak</title><link>https://sourceforge.net/p/freesynd/patches/9/?limit=25#0072</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Carlo,&lt;br/&gt;
Thanks for your patch! I have uplaoad it in thrunk&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Benoit Blancard</dc:creator><pubDate>Sat, 22 Oct 2022 05:53:23 -0000</pubDate><guid>https://sourceforge.net517c86d9e7a990cfeca4d3b22e37c1a233037e9d</guid></item><item><title>Windows: fix handle leak</title><link>https://sourceforge.net/p/freesynd/patches/9/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Attached patch fixes an handle leak for the Windows ports.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Carlo Bramini</dc:creator><pubDate>Wed, 21 Sep 2022 12:24:09 -0000</pubDate><guid>https://sourceforge.net8b360c18c71f1cab149a5f32b69aa8359f55f9e5</guid></item><item><title>Windows: fix handle leak</title><link>https://sourceforge.net/p/freesynd/patches/9/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 9 has been modified: Windows: fix handle leak&lt;br/&gt;
Edited By: Benoit Blancard (benblan)&lt;br/&gt;
Status updated: 'open' =&amp;gt; 'closed'&lt;br/&gt;
Owner updated: None =&amp;gt; 'benblan'&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Carlo Bramini</dc:creator><pubDate>Wed, 21 Sep 2022 12:24:09 -0000</pubDate><guid>https://sourceforge.net94dc8e1858a97d03a9878d82ae6d7440ff6acaf5</guid></item><item><title>#7 Add minimap implementation</title><link>https://sourceforge.net/p/freesynd/patches/7/?limit=25#4849</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;milestone&lt;/strong&gt;:  --&amp;gt; FeatureAdded&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bohdan Stelmakh</dc:creator><pubDate>Sat, 02 Mar 2013 15:09:01 -0000</pubDate><guid>https://sourceforge.netfcedad722bcba40a24198f0b35cc6a9873660fc7</guid></item><item><title>#8 Fixes for crashes in research menu and more</title><link>https://sourceforge.net/p/freesynd/patches/8/?limit=25#036a</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bohdan Stelmakh</dc:creator><pubDate>Sat, 02 Mar 2013 15:06:00 -0000</pubDate><guid>https://sourceforge.net5771375d7ef239f26a371e93352dada3286eb48f</guid></item><item><title>#8 Fixes for crashes in research menu and more</title><link>https://sourceforge.net/p/freesynd/patches/8/?limit=25#9c34</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;How about isDead() and isAlive()? Encapsulation is never a bad idea and always recommended to "hide" complex functionality behind a simple method/function call.&lt;/p&gt;
&lt;p&gt;As for the asserts, they don't hurt anywhere. If a variable is NULL which is not wanted at that points where I inserted them, you should abort your program and investigate that situation. The purpose of these threee asserts is to aid debugging of unexpected situations (as the logic of this program is complex something might go wrong). If you do not know what asserts are for, don't blame me for inserting them. I &lt;em&gt;had&lt;/em&gt; that situation that these checked variables were NULL, so I added an assert on that condition (I have improved it with next upload), started my debugger and got that assert so I could back-trace it to were it was caused.&lt;/p&gt;
&lt;p&gt;As for the assert in setHealth() in some situations you set a negative health (-1 e.g. in vehiclemanager.cpp) but then setHealth() checks if n &amp;lt; 0 and if so, sets it to zero. This means, you "fix" &amp;lt;0 vales to 0 which I concluded, that you want at lowest value 0 being set. The assert makes sure that you don't set any values below zero while you program and test your code.&lt;/p&gt;
&lt;p&gt;As for disableFundBox(), it is almost the same as for isDead/Alive() methods, as they encapsulate code/functionality behind a simple method call. Here, disableFundBox() - as the name suggests - disables the whole fund box (+/- controls and value output).&lt;/p&gt;
&lt;p&gt;First, it sets incrFundId_ and decrFundId_ to not being visible (means, not click-able). Then it sets the value which is fundCurrLblId_ responsible for, to empty, then makes it invisble. This may look like redundant but it is just a cleaner programming way. The last step is to empty the "research title" referenced by searchTitleLblId_, as you don't need it.&lt;/p&gt;
&lt;p&gt;In ResearchMenu::ResearchMenuhandleLeave() I have added two lines to set two class "attributes" (or fields, or however you call them) to NULL is this leaves a much cleaner state behind. It is like leaving your house but left all lights and TV turned on.&lt;/p&gt;
&lt;p&gt;In Research::init() your code caused a warning which I have now fixed. This requires Research::researchCnt being initially set to zero, not one.&lt;/p&gt;
&lt;p&gt;The methods isMaxFunding() and isMinFunding() are again for better encapsulation.&lt;/p&gt;
&lt;p&gt;In ped.h I added an enum called "objBaseSpeed" which hold all "actor's" base speeds in one place to make easy balancing possible (as I mentioned in my previous comment).&lt;/p&gt;
&lt;p&gt;In ResearchManager::complete() I use a local variable "researchValid" which is being set to "true" if a research has really been completed. And if it is so, the fireGameEvent() method is being called. Without this, I had crash on debriefing screen when a research completed while I was in-game (on the map, not in menu).&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Roland Haeder</dc:creator><pubDate>Thu, 17 Jan 2013 05:32:23 -0000</pubDate><guid>https://sourceforge.netf6a6659b8640792a9957b47b12b9e5b468b30776</guid></item><item><title>#8 Fixes for crashes in research menu and more</title><link>https://sourceforge.net/p/freesynd/patches/8/?limit=25#f723</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;As for the rest, I will not accept your patch. You do not present me information requried to reproduce errors to understand purpose of those asserts, you insist on adding disableFundBox which I don't like at all.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bohdan Stelmakh</dc:creator><pubDate>Thu, 10 Jan 2013 10:23:11 -0000</pubDate><guid>https://sourceforge.netac7c2fc518e252b41fab548f83cd624919b22e1a</guid></item><item><title>#8 Fixes for crashes in research menu and more</title><link>https://sourceforge.net/p/freesynd/patches/8/?limit=25#2186</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Indeed I have forgotten to add 2 files, also I have added properties to files you mentioned.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bohdan Stelmakh</dc:creator><pubDate>Thu, 10 Jan 2013 09:34:47 -0000</pubDate><guid>https://sourceforge.neta46b6b3d4fe7582731a6531c42b57c593420f67f</guid></item><item><title>#8 Fixes for crashes in research menu and more</title><link>https://sourceforge.net/p/freesynd/patches/8/?limit=25#bb00</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;src/menus/squadselection.cpp has Windows line breaks (\n\r()), but all other files have Unix (\n). You should set "svn:eol-style" property to native. Then everyone can commit with his/her line-breaking characters and nothing got changed entirely.&lt;/p&gt;
&lt;h1 id="binsh"&gt;!/bin/sh&lt;/h1&gt;
&lt;p&gt;find -type f -name "&lt;em&gt;.cpp" -exec svn propset svn:eol-style "native" {} \;&lt;br /&gt;
find -type f -name "&lt;/em&gt;.h" -exec svn propset svn:eol-style "native" {} \;&lt;/p&gt;
&lt;p&gt;This script might help. :) To the asserts I have added, I had crashes there (mostly SIGABORT and segfault). So I added some asserts to help debugging it. It is in my oppinion advisable to check for important parameters that they are set as expected and not just let them go. Anyway, if asserts and method calls hurts performance on your system, sorry to ask, do you run it on a C16? ;-)&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Roland Haeder</dc:creator><pubDate>Thu, 10 Jan 2013 01:20:33 -0000</pubDate><guid>https://sourceforge.neta756c5fd1cf376ccc6be396de73471eb71f03ddf</guid></item></channel></rss>