OSDN Git Service
(root)
/
csp-qt
/
common_source_project-fm7.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d7ce4f
)
[VM][EVENT] Update MAX_SOUND from 8 to 16.
author
K.Ohta
<whatisthis.sowhat@gmail.com>
Sun, 2 Oct 2016 16:43:57 +0000
(
01:43
+0900)
committer
K.Ohta
<whatisthis.sowhat@gmail.com>
Sun, 2 Oct 2016 16:43:57 +0000
(
01:43
+0900)
source/src/vm/event.h
patch
|
blob
|
history
diff --git
a/source/src/vm/event.h
b/source/src/vm/event.h
index
82cd908
..
b222c11
100644
(file)
--- a/
source/src/vm/event.h
+++ b/
source/src/vm/event.h
@@
-15,7
+15,8
@@
#include "device.h"
#define MAX_CPU 8
-#define MAX_SOUND 8
+// 20161003 K.O
+#define MAX_SOUND 16
#define MAX_LINES 1024
#define MAX_EVENT 64
#define NO_EVENT -1
@@
-187,7
+188,9
@@
public:
}
void set_context_sound(DEVICE* device)
{
- d_sound[dcount_sound++] = device;
+ if(dcount_sound < MAX_SOUND) {
+ d_sound[dcount_sound++] = device;
+ }
}
bool is_frame_skippable();
};