https://wiki.multitheftauto.com/wiki/Talk:IsElementWithinAColShape?feed=atom&action=historyTalk:IsElementWithinAColShape - Revision history2024-03-29T05:56:20ZRevision history for this page on the wikiMediaWiki 1.39.3https://wiki.multitheftauto.com/index.php?title=Talk:IsElementWithinAColShape&diff=36630&oldid=prevJaysds1 at 09:40, 12 July 20132013-07-12T09:40:16Z<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 09:40, 12 July 2013</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l4">Line 4:</td>
<td colspan="2" class="diff-lineno">Line 4:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Also, why not [[IsElementWithinColShape]]? --[[User:Wielebny|Wielebny]] 18:44, 24 June 2013 (UTC)</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Also, why not [[IsElementWithinColShape]]? --[[User:Wielebny|Wielebny]] 18:44, 24 June 2013 (UTC)</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">You are right, the result would never be freed if an element is destroyed inside the colshape, and I'm working on the restart-proof code.</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">By the way, The only reason why I didn't overwrite the function [[isElementWithinColShape]] is because that function check if the element is in a specific colshape, where as this function checks whether the element is in '''A''' colshape.</ins></div></td></tr>
</table>Jaysds1https://wiki.multitheftauto.com/index.php?title=Talk:IsElementWithinAColShape&diff=36442&oldid=prevWielebny: Y U NO USE builtin functions?2013-06-24T18:44:32Z<p>Y U NO USE builtin functions?</p>
<p><b>New page</b></p><div>I don't consider this example very well written. In case that player element enters the colshape, and then disconnects, the inColShape[player_element] will never be freed, resulting in memory leak.<br />
<br />
Besides, this code isn't restart-proof and can't handle more than one colshape.<br />
<br />
Also, why not [[IsElementWithinColShape]]? --[[User:Wielebny|Wielebny]] 18:44, 24 June 2013 (UTC)</div>Wielebny