ac-stef
697197bd5b
generalise sorting of lists of integer sets
2016-02-07 18:34:31 +01:00
ac-stef
826499c12d
enable gcc to check arguments of printf-like functions
...
Check printf-like functions like conoutf, if format strings and argument
lists match.
This commit also fixes a lot of code parts that actually had mismatching
argument lists - or did things, that this check does not like.
numtime() was rewritten in an ugly but very portable fashion (it's
recommended to stay away from "long long" format entries, because errors
usually only come up at runtime).
(some code was copied from sauer)
2015-08-02 19:40:41 +02:00
Frank LENORMAND and ac-stef
e268794af7
some fixes
2015-07-18 01:25:18 +02:00
ac-stef
fe6f9e92a7
tab and formfeed cleanup
2015-06-10 14:28:50 +02:00
ac-stef
11dc8202fa
cleanup
2015-06-05 16:01:03 +02:00
ac-stef
44c15dcd13
remove unnecessarily stupid comment
2015-02-08 17:39:14 +01:00
lucas.gautheron
19e4aff2dc
Force respawn automatically in DM/TDM, PF and HTF in mastermode MATCH
2015-01-05 14:49:37 +01:00
aurhat
170f377262
Fix gonext command and do it random
...
Commit fixes broken "gonext" command, among other things reading time
from maprot, and it does random result of this command.
It also removes get_next() function, because it messes up the maprot,
so shouldn't be used.
2014-11-05 19:19:33 +01:00
aurhat
7fae0d2a2f
Fix warning messages to spammer changing name/skin
...
Warning message will be sent only to spammer changing name/skin,
and only in multiplayer, what fixes issue:
https://github.com/assaultcube/AC/issues/66
2014-10-04 20:25:44 +02:00
ac-stef
29dd50bde6
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
2014-05-25 00:35:22 +02:00
ac-stef
a0286d2b3f
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
2014-05-24 12:59:19 +02:00
aurhat
77f5b15ba9
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.
2014-05-17 12:00:54 +02:00
Šarūnas Snapkauskas and ac-stef
40f98595a8
server: fix blocking of non-existent primary guns
...
I think driAn meant to use OR, as using AND leads to FALSE.
2014-05-15 17:35:08 +02:00
aurhat and ac-stef
c0c68053e8
Fix of endless round in team arena mode
...
...when one team becomes empty, and in second team there are
more players than 1.
This is fix of https://github.com/assaultcube/AC/issues/24 .
2014-05-15 17:35:08 +02:00
ac-stef
d3bda71212
map file addons: embedded config file; persistent undo/redo data
...
This commit establishes an extensible way of storing additional data in
map file headers. Those header extras can be permanent, like the embedded
config file or be used only once after map load like the undo/redo data.
Additional extra data can be easily added and will not break backward
compatibility, so this map format should hold up for quite some time.
To make things easier for mappers, maps can now be saved without invoking
the various optimisations. That, in combination with the stored undo data,
means, that editing a map can be picked up at exactly the same state, as
the map was saved in.
Maps will automatically be written in the appropriate fashion, depending
on the situation:
1) for sendmap: no optimisation, no undo data
2) savemap during editing: no optimisation, with undo data
3) savemap when not editing: optimised, no undo data
4) savemapoptimised: optimised, no undo data
(For savemap to save different maps during editing, the variable
preserveundosonsave has to be "1". It is "0" by default.)
All of the above map files can be played without problems - they only
differ in file size. (However, maps with undo data may be too big to send)
The new command "embedconfigfile" will load the config file, include it in
the map header and rename the original text file.
"extractconfigfile" will write an embedded config file to a separate file
and remove it from the map header.
Embedded config files take precedence over regular config files and
therefore make it harder for cheaters to play with modified config files.
further changes: cleaned up some debugging code; more ASSERTs
2014-05-15 16:07:52 +02:00
ac-stef
23d04ffec6
fix access to uninitialized memory
...
thx, valgrind
2014-05-14 22:39:57 +02:00
ac-stef
13c432229b
reverting integer overflow which floods the log every 50 days
...
this may have been borons second most stupid commit
2014-05-14 22:39:57 +02:00
aurhat
599e62336a
Patch adds flags reset in ctf/htf mode after "shuffleteams".
...
Nowadays after teams rearrangemend flags are only dropped and don't return to base.
2014-03-30 15:38:29 +02:00
Ronald Reagan
4d5503be95
No spectate respawn timer evasion. Closes #20
2014-01-23 12:56:56 -08:00
Lucas GAUTHERON
6fbae31e0d
demo time limit fix
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7599 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-10-12 08:46:23 +00:00
Lucas GAUTHERON
1cb17f4fef
"you have already downloaded this demo" "no i haven't"
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7597 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-10-12 08:05:10 +00:00
Lucas GAUTHERON
f63c20c09f
former voting behavior restored
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7593 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-10-11 17:32:34 +00:00
Lucas GAUTHERON
a39bc77abc
server written demos name fix
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7568 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-10-05 12:00:59 +00:00
Lucas GAUTHERON
29b7e0625e
don't perform this check in SP
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7497 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-06-23 17:28:46 +00:00
Lucas GAUTHERON
2f55903ad0
messy patch tmp revert
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7491 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-05-27 17:25:21 +00:00
Lucas GAUTHERON
624dd348d7
make the server store more map data (more accurate pickup calculations)
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7487 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-05-26 16:40:57 +00:00
Lucas GAUTHERON
c428be31f4
prevent clients from downloading a demo twice
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7344 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-03-10 20:37:51 +00:00
Lucas GAUTHERON
808ccf4400
serverside spawntime check
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7310 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-03-05 15:21:34 +00:00
Lucas GAUTHERON
ec274ae926
prevent namechange/setskin spam
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7309 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-03-05 14:08:24 +00:00
Lucas GAUTHERON
c7b1fa19c2
distinguish auto-banned clients from vote-banned clients
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7307 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-03-05 12:37:49 +00:00
Cristian Vlasceanu
ce16bdf773
Fixed forceteam bug ( http://forum.cubers.net/thread-5857-post-122189.html#pid122189 )
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7261 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-02-28 07:48:24 +00:00
Bukz
d9698bee9d
fixed potential server vulnerability (thanks ironzorg)
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7167 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-02-07 14:30:58 +00:00
Lucas GAUTHERON
43ab63a88a
serverside shotgun checks, addban function
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7017 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-12-31 03:26:52 +00:00
Lucas GAUTHERON
cf90986c1f
kick all the players matching with new gban rules received, even admins
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7003 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-12-29 00:29:41 +00:00
Lucas GAUTHERON
d87098c4a0
prevent gbans from being passed through with admin passwords
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7002 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-12-29 00:16:44 +00:00
Lucas GAUTHERON
ff4bb6c8e5
map vote message fixed (when using custom game times)
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6999 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-12-27 10:41:42 +00:00
Lucas GAUTHERON
df69ee7d90
serverlog message giving anticheat's status at startup
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6996 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-12-25 22:19:30 +00:00
Lucas GAUTHERON
a339afd5e9
server logs fix, thanks Castiel
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6970 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-12-12 15:45:16 +00:00
Ronald Reagan
66dcf1fa32
Fix noobstake (hopefully)
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6934 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-11-18 00:00:56 +00:00
Ronald Reagan
0fcdcad35b
Demo long name failures fixed
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6932 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-11-17 21:06:37 +00:00
sireus
7fa7e615d1
don't warn about missing entities in coopedit (thanks, XRD)
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6913 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-10-10 18:19:40 +00:00
sireus
b33116712c
sane(r) command signatures (warning: huge commit)
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6908 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-10-06 22:49:49 +00:00
sireus
907ecb044a
can now explicitly specify target team on forceteam vote
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6897 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-09-30 20:07:22 +00:00
sireus
b4385a4897
armor no longer affects knife damage
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6887 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-09-23 16:58:55 +00:00
sireus
f26aed4a9d
simplified voting system - votes succeed if yes > no, or immediately if yes > 50%
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6884 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-09-22 11:24:55 +00:00
sireus
98d17a20eb
votable time limit
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6881 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-09-17 22:41:38 +00:00
sireus
1356590f9d
fix IP-related endianness confusion
...
(please double-check, I don't have HW to test this :) )
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6866 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-08-24 20:19:08 +00:00
sireus
74b873ddba
various whois-related cleanups and fixes (fixes demos again)
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6865 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-08-24 19:55:42 +00:00
Lucas GAUTHERON
629d7346c3
retrieve IP addresses when players join and allow cubescript to fetch these IPs
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6859 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-08-23 10:43:25 +00:00
sireus
cfccba92d1
fixed C++11-related warnings
...
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6853 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-07-07 22:35:30 +00:00