Don't remove client's teams from teams list on "ROUNDFINISHED 0", just send team removal message to others.
This should fix problems with ghost teams in frontend.
Not tested at all, successfully built on first attempt, which is considered as a bad sign :D
Server still thinks game proceeds, so restart isn't possible.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>LSApplicationCategoryType</key>
<string>public.app-category.strategy-games</string>
<key>CFBundleName</key>
<string>Hedgewars</string>
<key>CFBundleExecutable</key>
<string>hedgewars</string>
<key>CFBundleGetInfoString</key>
<string>http://www.hedgewars.org</string>
<key>CFBundleIconFile</key>
<string>Icon.icns</string>
<key>CFBundleIdentifier</key>
<string>org.hedgewars.desktop</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>Hedge</string>
<key>CFBundleVersion</key>
<string>${HEDGEWARS_REVISION}</string>
<key>CFBundleShortVersionString</key>
<string>${HEDGEWARS_VERSION}</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2004-2011, Hedgewars Project</string>
<key>NSAppleScriptEnabled</key>
<false/>
<key>LSRequiresNativeExecution</key>
<true/>
<key>LSMinimumSystemVersionByArchitecture</key>
<dict>
<key>x86_64</key>
<string>10.6.0</string>
<key>i386</key>
<string>10.4.0</string>
<key>ppc</key>
<string>10.4.0</string>
</dict>
<key>LSArchitecturePriority</key>
<array>
<string>x86_64</string>
<string>i386</string>
<string>ppc</string>
</array>
<key>LSMinimumSystemVersion</key>
<string>${minimum_macosx_version}</string>
<key>SUPublicDSAKeyFile</key>
<string>dsa_pub.pem</string>
<key>CFBundleLocalizations</key>
<array>
<string>ar</string>
<string>bg</string>
<string>cs</string>
<string>de</string>
<string>el</string>
<string>en</string>
<string>es</string>
<string>fi</string>
<string>fr</string>
<string>gl</string>
<string>hu</string>
<string>it</string>
<string>ja</string>
<string>ko</string>
<string>nl</string>
<string>pl</string>
<string>pt_BR</string>
<string>pt_PT</string>
<string>ru</string>
<string>sk</string>
<string>sv</string>
<string>tr</string>
<string>uk</string>
<string>zh_CN</string>
<string>zh_TW</string>
</array>
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeIdentifier</key>
<string>org.hedgewars.desktop.hws</string>
<key>UTTypeReferenceURL</key>
<string>http://www.hedgewars.org/demos/</string>
<key>UTTypeDescription</key>
<string>Hedgewars Save Game</string>
<key>UTTypeIconFile</key>
<string>public.text.icns</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
</array>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>hws</string>
</array>
<key>public.mime-type</key>
<string>application/x-hedgewars-save</string>
</dict>
</dict>
<dict>
<key>UTTypeIdentifier</key>
<string>org.hedgewars.desktop.hwd</string>
<key>UTTypeReferenceURL</key>
<string>http://www.hedgewars.org/demos/</string>
<key>UTTypeIconFile</key>
<string>public.text.icns</string>
<key>UTTypeDescription</key>
<string>Hedgewars Demo Game</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
</array>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>hwd</string>
</array>
<key>public.mime-type</key>
<string>application/x-hedgewars-demo</string>
</dict>
</dict>
</array>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeIconFile</key>
<string>hwico.icns</string>
<key>CFBundleTypeName</key>
<string>Hedgewars Savefile</string>
<key>LSItemContentTypes</key>
<array>
<string>org.hedgewars.desktop.hws</string>
</array>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeIconFile</key>
<string>hwico.icns</string>
<key>CFBundleTypeName</key>
<string>Hedgewars Demofile</string>
<key>LSItemContentTypes</key>
<array>
<string>org.hedgewars.desktop.hwd</string>
</array>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
</dict>
</array>
</dict>
</plist>