aboutsummaryrefslogtreecommitdiff
path: root/engines/mortevielle/parole2.h
diff options
context:
space:
mode:
authorEugene Sandulenko2011-12-23 22:15:35 +0000
committerStrangerke2012-04-06 08:18:13 +0200
commit9b6a4264dcaa26d87fa099c0a0dadbb8e37a6241 (patch)
treeb785814bdb2b225b2fefe2f3be60b0c192867d58 /engines/mortevielle/parole2.h
parent816e53c1f87365cb351fe3dbdf4a8636954d1773 (diff)
downloadscummvm-rg350-9b6a4264dcaa26d87fa099c0a0dadbb8e37a6241.tar.gz
scummvm-rg350-9b6a4264dcaa26d87fa099c0a0dadbb8e37a6241.tar.bz2
scummvm-rg350-9b6a4264dcaa26d87fa099c0a0dadbb8e37a6241.zip
MORTEVIELLE: Ran astyle over generated files
Diffstat (limited to 'engines/mortevielle/parole2.h')
-rw-r--r--engines/mortevielle/parole2.h168
1 files changed, 80 insertions, 88 deletions
diff --git a/engines/mortevielle/parole2.h b/engines/mortevielle/parole2.h
index 6cdaa3e2b4..07ac757d77 100644
--- a/engines/mortevielle/parole2.h
+++ b/engines/mortevielle/parole2.h
@@ -1,103 +1,95 @@
- void rot_chariot()
- {
- c1= c2;
- c2= c3;
- {
- c3.val= 32;
- c3.code= 9;
- }
- }
+void rot_chariot() {
+ c1 = c2;
+ c2 = c3;
+ {
+ c3.val = 32;
+ c3.code = 9;
+ }
+}
- void init_chariot()
- {
- {
- c3.rep= 0;
- c3.freq= 0;
- c3.acc= 0;
- }
- rot_chariot();
- rot_chariot();
- }
+void init_chariot() {
+ {
+ c3.rep = 0;
+ c3.freq = 0;
+ c3.acc = 0;
+ }
+ rot_chariot();
+ rot_chariot();
+}
-void trait_ph()
- {
- const array<0,2,integer> deca
- = {{300,30,40}};
+void trait_ph() {
+ const array<0, 2, integer> deca
+ = {{300, 30, 40}};
- ptr_tcph= pred(integer,num_ph);
- ledeb=swap(t_cph[ptr_tcph]) + deca[typlec];
- lefin=swap(t_cph[ptr_tcph+1]) + deca[typlec];
- nb_word= lefin - ledeb;
- ptr_tcph=(cardinal)ledeb >> 1;
- ptr_word = 0;
- do {
- memw[adword+ ptr_word]= t_cph[ptr_tcph];
- ptr_word = ptr_word +2;
- ptr_tcph = ptr_tcph+1;
- } while (!(ptr_tcph>=((cardinal)lefin >> 1)));
+ ptr_tcph = pred(integer, num_ph);
+ ledeb = swap(t_cph[ptr_tcph]) + deca[typlec];
+ lefin = swap(t_cph[ptr_tcph + 1]) + deca[typlec];
+ nb_word = lefin - ledeb;
+ ptr_tcph = (cardinal)ledeb >> 1;
+ ptr_word = 0;
+ do {
+ memw[adword + ptr_word] = t_cph[ptr_tcph];
+ ptr_word = ptr_word + 2;
+ ptr_tcph = ptr_tcph + 1;
+ } while (!(ptr_tcph >= ((cardinal)lefin >> 1)));
- ptr_oct= 0;
- ptr_word= 0;
- init_chariot();
+ ptr_oct = 0;
+ ptr_word = 0;
+ init_chariot();
- do {
- rot_chariot();
- charg_car();
- trait_car();
- } while (!(ptr_word >= nb_word));
+ do {
+ rot_chariot();
+ charg_car();
+ trait_car();
+ } while (!(ptr_word >= nb_word));
- rot_chariot();
- trait_car();
- entroct(ord('#'));
- }
+ rot_chariot();
+ trait_car();
+ entroct(ord('#'));
+}
- void parole(integer rep, integer ht, integer typ)
- {
- array<0,500,integer> savph;
- integer i;
- integer tempo;
+void parole(integer rep, integer ht, integer typ) {
+ array<0, 500, integer> savph;
+ integer i;
+ integer tempo;
- if (sonoff) return;
- num_ph= rep;
- haut= ht;
- typlec= typ;
- if (typlec!=0)
- {
- for( i=0; i <= 500; i ++) savph[i]=t_cph[i];
- tempo= tempo_bruit;
- }
- else
- if (haut>5) tempo= tempo_f;
- else tempo= tempo_m;
- addfix= (real)((tempo-addv[0]))/256;
- cctable(tbi);
- switch (typ) {
- case 1 : {
- charge_bruit();
- /*if zuul then zzuul(adbruit,0,1095);*/
- regenbruit();
- }
- break;
- case 2 : {
- charge_son();
- charge_phbruit();
- }
- break;
- }
- trait_ph();
- litph(tbi,typ,tempo);
- if (typlec!=0)
- for( i=0; i <= 500; i ++)
- {
- t_cph[i]=savph[i];
- mlec=typlec;
- }
- writepal(numpal);
- }
+ if (sonoff) return;
+ num_ph = rep;
+ haut = ht;
+ typlec = typ;
+ if (typlec != 0) {
+ for (i = 0; i <= 500; i ++) savph[i] = t_cph[i];
+ tempo = tempo_bruit;
+ } else if (haut > 5) tempo = tempo_f;
+ else tempo = tempo_m;
+ addfix = (real)((tempo - addv[0])) / 256;
+ cctable(tbi);
+ switch (typ) {
+ case 1 : {
+ charge_bruit();
+ /*if zuul then zzuul(adbruit,0,1095);*/
+ regenbruit();
+ }
+ break;
+ case 2 : {
+ charge_son();
+ charge_phbruit();
+ }
+ break;
+ }
+ trait_ph();
+ litph(tbi, typ, tempo);
+ if (typlec != 0)
+ for (i = 0; i <= 500; i ++) {
+ t_cph[i] = savph[i];
+ mlec = typlec;
+ }
+ writepal(numpal);
+}