• R/O
  • SSH

silny-kombat: Commit

Mercurial repo for silny-kombat project


Commit MetaInfo

Revision30ed48aeff1c016a466e57af69afd9dc5a4313ff (tree)
Time2021-09-08 03:57:20
AuthorPiotr Kozka <piotoor@gmai...>
CommiterPiotr Kozka

Log Message

Bugfix related to trigger method integration

Change Summary

Incremental Difference

diff -r c8b5f08d9065 -r 30ed48aeff1c src/controller.rs
--- a/src/controller.rs Tue Sep 07 20:49:55 2021 +0200
+++ b/src/controller.rs Tue Sep 07 20:57:20 2021 +0200
@@ -116,7 +116,7 @@
116116 // stateReference = state;
117117
118118 if key_result == 3 {
119- character_A.trigger(0);
119+ //character_A.trigger(0);
120120 counter = 0;
121121 }
122122 if key_result == 1 || key_result == 2 || key_result == 3 {
@@ -129,11 +129,11 @@
129129
130130 key_result = key_result - KeyProcessor::KEY_BASE;
131131
132- if key_result == 1 || key_result == 2 {
132+ if key_result == 1 || key_result == 2 || key_result == 3 {
133133 character_B.trigger(keyProcessor.process_key(key_result));
134134 } else if key_result == 3 {
135135 //state_b = 0;
136- character_B.trigger(0);
136+ //character_B.trigger(0);
137137 counter = 0;
138138 }
139139 }
diff -r c8b5f08d9065 -r 30ed48aeff1c src/key_processing.rs
--- a/src/key_processing.rs Tue Sep 07 20:49:55 2021 +0200
+++ b/src/key_processing.rs Tue Sep 07 20:57:20 2021 +0200
@@ -93,6 +93,9 @@
9393 {
9494 return 1;
9595
96+ } else if key_result == 3
97+ {
98+ return 3;
9699 }
97100 return 0
98101 }
Show on old repository browser