- fix possible crash in conc (but it's still an ugly hack)
- fix noob usage of strcmp
- flag some memory leaks (it would be nice, if the author(s) would clean
   up the mess himself)
- fix crash in substr
- whitespace cleanup

there are plenty more memory leaks in command.cpp - for example, every
goto in cubescript does not clean up anything
This commit is contained in:
ac-stef
2014-05-14 22:54:37 +02:00
parent 5058172a06
commit eb60302e67
57 changed files with 246 additions and 254 deletions
Executable → Regular
View File
+1 -1
View File
@@ -26,7 +26,7 @@ const orderscorecolumns [
sc_score 5;
sc_lag 6;
sc_ratio -1;
] [
] [
sc_flags 0;
sc_frags 1;
sc_deaths 2;
+1 -1
View File
@@ -123,7 +123,7 @@ for file in $*; do
echo "Converting mapmodels..."
sed -i '/^mapmodel/s/\<laptop1\>/jcdpc\/laptop/1' $file
sed -i '/^mapmodel/s/\<rattrap\/cbbox\>/toca\/cardboardbox/1' $file
sed -i '/^mapmodel/s/\<rattrap\/rbbox\>/ratboy\/toca_cardboardbox_reskin/1' $file
sed -i '/^mapmodel/s/\<rattrap\/rbbox\>/ratboy\/toca_cardboardbox_reskin/1' $file
sed -i '/^mapmodel/s/\<rattrap\/hanginlamp\>/jcdpc\/hanginglamp/1' $file
sed -i '/^mapmodel/s/\<rattrap\/ventflap\>/jcdpc\/ventflap/1' $file
sed -i '/^mapmodel/s/\<rattrap\/milkcrate2\>/ratboy\/toca_milkcrate_blue/1' $file
+2 -2
View File
@@ -4,7 +4,7 @@
name "unarmed" // Change your name!
loadcrosshair default.png // Choose another crosshair, see ./packages/crosshairs/
loadcrosshair teammate.png teammate // Teammate crosshair.
loadcrosshair red_dot.png scope // Scope crosshair.
loadcrosshair red_dot.png scope // Scope crosshair.
skin_cla (rnd 4) // Change your look.
skin_rvsf (rnd 6)
autoreload 1 // Reload the guns automatically by default.
@@ -34,4 +34,4 @@ survDamageEffects = 1
autosavemap = 0
timeBetAutoSaves = 300000
numAutoSaveBackups = 3
menuBotGameLength = 15
menuBotGameLength = 15
+2 -2
View File
@@ -87,13 +87,13 @@ faqAnswer_8 = [
]
genFaq = [
loop i (listlen $faqQuestions) [
loop i (listlen $faqQuestions) [
if (= (mod $i 2) 0) [
menuitem (concatword (yellow) (format [#%1: ] (+ $i 1)) (at $faqQuestions $i)) -1
] [
menuitem (concatword (c D) (format [#%1: ] (+ $i 1)) (at $faqQuestions $i)) -1
]
tmpMenuAlias = (getalias (format faqAnswer_%1 (+ $i 1)))
loop o (listlen $tmpMenuAlias) [
if (strstr (at $tmpMenuAlias $o) "http://") [
+1 -1
View File
@@ -17,4 +17,4 @@ const delayed_firstrun [
sleep 1000 delayed_firstrun
persistidents 1
persistidents 1
+1 -1
View File
@@ -95,4 +95,4 @@ fontchar 276 448 37 64 // z
fontchar 320 448 35 64 // {
fontchar 366 448 20 64 // |
fontchar 397 448 35 64 // }
fontchar 443 448 43 64 // ~
fontchar 443 448 43 64 // ~
+1 -1
View File
@@ -24,4 +24,4 @@ pussy
filho puta // "whore" or "slut" in portugese.
redtube
porntube
youporn
youporn
Executable → Regular
+1 -1
View File
@@ -147,4 +147,4 @@ keymap 246 OE
keymap 228 AE
// :: added for de support
exec config/resetbinds.cfg
exec config/resetbinds.cfg
+1 -1
View File
@@ -7,4 +7,4 @@ _ = [
result (gettext $arg1)
]
persistidents 1
persistidents 1
Executable → Regular
View File
+1 -1
View File
@@ -497,4 +497,4 @@ menuitemcheckbox (_ [Enable auto save map: ]) "$autosavemap" [ autosavemap = $ar
menuitemslider (_ [Time between auto saves (in minutes): ]) 2 60 "(div $timeBetAutoSaves 60000)" 1 [] [ timeBetAutoSaves = (* $arg1 60000) ]
menuitemtextinput (_ [Make a map backup (.BAK) every: ]) "$numAutoSaveBackups" [ numAutoSaveBackups = $arg1 ] [ if (! $showedBAKinfo) [ echo This setting effects the number of autosavemaps between making a map backup file. "(.BAK)"; showedBAKinfo = 1 ] ] 4
persistidents 1
persistidents 1
+1 -1
View File
@@ -67,4 +67,4 @@ genvcitem [Nice shot] niceshot 1
genvcitem [Thanks! "Thanks, man"] [thanks_1 thanks_2] 2
genvcitem [Awesome Awesome!] [awesome_1 awesome_2] 3
persistidents 1
persistidents 1
Executable → Regular
View File
+2 -2
View File
@@ -85,7 +85,7 @@ bind J []
bind K []
editbind K [ if $old_editbinds corner [ if (countwalls 1) [ solid 0 ] corner ] ] // Toggle corner/non-solid
bind L []
editbind L [ showmenu Lightning ]
editbind L [ showmenu Lightning ]
bind M []
editbind M [ domodifier 6 ]
bind N quickanswer
@@ -108,7 +108,7 @@ bind Z []
editbind Z [ domodifier 2 ]
bind DELETE []
editbind DELETE [ edittex 0 -1 ]
bind KP0 [ weapon 4 1 ]
bind KP0 [ weapon 4 1 ]
bind KP1 []
bind KP2 []
bind KP3 []
+2 -2
View File
@@ -85,9 +85,9 @@
// 3 WARNING: log only messages of level WARNING and above
// 4 ERROR: log only messages of level ERROR
// 5 do not write to the log
// -A // Restricts voting for a map/mode to admins. This switch can be used several times.
// -A // Restricts voting for a map/mode to admins. This switch can be used several times.
// these switches control the naming of demos (see -W)
// these switches control the naming of demos (see -W)
// --demofilenameformat="%Mmin_%G_%w_%H_%n" // default: "%w_%h_%n_%Mmin_%G"
// --demotimestampformat="%H%M_%Y%m%d" // default: "%Y%m%d_%H%M"
// --demotimelocal=1 // default: 0
+1 -1
View File
@@ -10,7 +10,7 @@
// who are innocently affect by an IP range ban.
// You can also use this page to advertize your clan or provide contact
// information for recruiting.
//
//
// Don't use more than 80 characters per line. You can use colors and TABs.
// Color usage: \f plus a corresponding number/character.
// The available colors are: 0: green, 1: blue, 2: yellow, 3: red, 4: gray, 5: white,
Executable → Regular
View File
+2 -2
View File
@@ -35,11 +35,11 @@ const survOnKill [
survTimeBetKills = (- (millis) $startSurvMillis) //
] [ add2list survTimeBetKills (- (millis) $survLastKill) ] // Other kills
survLastKill = (millis) // Update last kill
] [
] [
if (= $arg2 (player1 cn)) [
add2list tmpSurvSets (concat $arg1 $arg2 $arg3 $arg4 (player $arg1 name)) // Player1 was target, pass arguments/data along for use in the after game results/stats messages.
]
]
]
]
const survOnHit [