Fix of  doubled end of round, when spectator changes mode to active, short of the new round start.
This is fix of  https://github.com/assaultcube/AC/issues/18 . Patch restores structure changed in commit: https://github.com/assaultcube/AC/commit/5c117d .
There is added only "c.state.state==CS_SPECTATE" condition.
fix makefile
fix: keep g++ attributes to g++ only

prevent wannabe compilers from parsing GNUC-only code
(clang++ apparently defines __GNUC__)
fix clang warning
Fix of wrong stats of pistol's ammo on HUD

...when player holds nade and akimbo disappears.
To test the bug: take akimbo, take grenade, press "g"  and wait for akimbo disappearing.
Then stats on HUD shows, that player has pistol with 0 ammo, instead of full magazine.
fix: convert xmap path names for windows

* make sure, unsaved edits only count in editmode (otherwise "watercolour"
  in map configs would already be "edits")

* nicer filenames for backup-xmaps

* catch failed xmap file write access

* unsavededits is now flag (!= 0) and counter - to enable scripts to
  detect "new edits".

new commands:

xmap_delete_backup    deletes the backup xmap

xmap_keep_backup    moves the backup xmap to a regular named spot

xmap_rename    changes the nickname of an xmap
fix: allow creating directories without homedir

With this fix, ac can also create directories relative to the working
directory. This fixes xmaps for users without homedir set.
removed now redundant code

and substituted "copy file and delete original" with "move file"
fix: show intermission after demo playback

thx jamz :)
Two fixes of wrong messages about change to active/spectate mode.
First fix causes, that when player1: plays non-team mode + already is in active mode + changes team to enemy, then will appear message: "you can't switch teams while being alive".
Current wrong message is: "you can't change to active mode".

Second fix disables redundant info: "$playername changed to active play", after change to enemy team in non-team modes, when he is already in active mode.
fix buffer overflow for unknown mode numbers

to test, try /mode 1337 ; map ac_desert
replace textfilter functions with one-fits-all version

* replaces filtertext() with a version with a dozen of single filters
  that can be used in any combination
* defines classes of allowed characters for strings for various uses
  (see protocol.h line 153ff)
* now the allowed charset of, for example, player names is defined
  in one location only
* fixes issue #58
play drop sound when exiting edit mode

...and the player "drops" back into the map
(fixes issue #55)
fix: don't apply water physics in edit mode

* no longer slows down the player under water
* no longer plays sounds for water transitions
* still plays underwater sound and shows underwater visual effects

fixes issue #56
fix: don't play hard landing sounds on water transitions

fixes issue #57
fix: keep path and uppercase in demo filenames

votes now distinguish between demo and map votecalls and filter the
filename appropriately

also: remove paths from map names cleanly
fix failed assertion on making selections in editmode

last() may not be used on an empty vector

also, the FIXME was obsolete, since addselection() does call correctsel()
move the clock to the right side
Add list of standard resolutions to the settings in video menu
Fix bugs in spectator mode and removed unused FPCNs

First fix - now togglespect lets to return automatically to previously
spectated player, after spectating him, switching to "fly spectate" mode
and again to spectating players.
Second fix - now player doesn't land and stuck outside of new map,
when during spectating somebody map changed.
FCPNs are removed, because currently they aren't used.