Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
Merge pull request #88 from HC-Interns/speed-boost
Browse files Browse the repository at this point in the history
adds package lock and removes validation for speed
  • Loading branch information
willemolding authored Aug 9, 2018
2 parents 5327540 + 0fcc21c commit b545fbf
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 7,582 deletions.
25 changes: 25 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"devDependencies": {
"@types/jest": "^23.3.1",
"@types/node": "^10.5.4",
"@types/react": "^16.4.8",
"cpx": "^1.5.0",
"immutable": "^3.8.2",
"typescript": "^2.9.2"
Expand Down
2 changes: 1 addition & 1 deletion ui-src/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const KEY_PAN_SPEED = CELL_SIZE * 1.0
export const FETCH_ACTIONS_INTERVAL = 1500
export const FETCH_LOBBY_INTERVAL = 3000
export const PAN_INTERVAL = 50
export const ACTION_QUEUE_INTERVAL = 350
export const ACTION_QUEUE_INTERVAL = 50

// anount of time it takes for lobby intro to finish
// used to disable animation after the first time
Expand Down
4 changes: 2 additions & 2 deletions ui-src/src/store.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ function reduceGame (state: StoreState, action: ReduxAction): StoreGameState {
}
case 'FETCH_ACTIONS': {
chats = chats.clear()
action.actions.sort(compareActions).filter(isFirst);
action.actions.forEach(a => {
action.actions.sort(compareActions);
action.actions.filter(isFirst).forEach(a => {
switch (a.actionType) {
case "flag":
case "reveal":
Expand Down
Loading

0 comments on commit b545fbf

Please sign in to comment.