Commit Graph

65 Commits

Author SHA1 Message Date
Scott Ludwig
f2d7002bc3 Restore game audio after OS events (dictation or siri) use audio
- Dictation reliable raises the handleAudioInterrupt notification, so that
  is used for disabling / enabling audio
- Siri sometimes doesn't raise the handleAudioInterrupt notification, so
  rely on applicationDidBecomeActive / applicationWillResignActive.
- Trial and error showed it is best to destroy and re-create the OS audio
  objects when audio is disabled / enabled.
2016-01-21 21:45:51 -08:00
Scott Ludwig
2a3ef9776d Remove old assert that is firing frequently on debug builds
This assert checked for the bottom 2 bits of a gid to be 0. Now that
gids are indexes, these two bits are frequently not zero. Looking at
the code, there is no place (that I could find) where those bits are
set (I think kwfGidEndMarker used to be stored there).
2016-01-21 21:44:51 -08:00
Scott Ludwig
f2289c40ac Make data assets buildable on Linux
- Buildable on OSX and Linux now
- Fixed filename casing mismatches
- Inicrunch fixes, osx and linux versions, added Makefile

Note: gnu's cpp doesn't understand the -Wno-invalid-pp-token flag,
the absence of which causes ignorable preprocessing warnings on
strings with unmatched quotes.
2016-01-21 19:06:42 -08:00
Scott Ludwig
a0f077cb1a Add -Wno-invalid-pp-token -Wno-trigraphs to data preprocess step
This tells the .lvl preprocess step to ignore things like single quotes in text,
and char sequences that look like trigraphs but aren't.
2016-01-20 22:53:13 -08:00
Scott Ludwig
1836a5489a Recompiled assets with wider title screen image 2016-01-20 22:52:03 -08:00
Scott Ludwig
288ae87a69 expand width of title screen background to fill display of newer devices
(from Darrin)
2016-01-20 22:51:00 -08:00
Scott Ludwig
8beb17a198 NSURLConnection -> NSURLSession, NSURLSessionDataTask deprecation fix 2016-01-20 11:01:38 -08:00
Scott Ludwig
4c0d6cf665 UIBarButtonItemStyleBordered deprecation fix 2016-01-20 11:01:08 -08:00
Scott Ludwig
c2d63ec443 Remove setStatusBarOrientation due to deprecation 2016-01-20 11:00:39 -08:00
Scott Ludwig
589fdff1b3 UIAlert -> UIAlertController deprecation fix 2016-01-20 11:00:11 -08:00
Scott Ludwig
ee2695b4ac Select SDK 9.0 as the min version - that's the major version we test with 2016-01-20 10:59:14 -08:00
Scott Ludwig
871fec58a4 Fix typo in server drain and delete helper script 2016-01-13 22:42:39 -08:00
Scott Ludwig
3f038fea0d Fix download mission pack column label positioning 2016-01-13 22:27:13 -08:00
Scott Ludwig
622b960b10 Fix 32 bit / 64 bit multiplayer interop problem
- Fix gids to be calculated the same on 32 bit and 64 bit platforms.
  Previously they were byte offsets into a pointer array, which meant
  multiple of 4 on 32 bit platforms, and multiple of 8 on 64 bit platforms.
  Now they are indexes.
2016-01-13 22:25:34 -08:00
Scott Ludwig
83a84abc08 Fix observed crash in IPhone::Log 2016-01-12 15:32:40 -08:00
Scott Ludwig
edc455c93d Respond to keyboardWillChangeFrame for improved keyboard handling
- Fixes press chat / press done bug that gets chat into a weird state
- Handles keyboard height changing dynamically (predictive typing bar,
  emoji keyboards etc).

  This change is from Nathan Fulton, https://github.com/N104.
2016-01-12 15:32:10 -08:00
Scott Ludwig
7e1557b5f0 Make UITableView rows be not selectable in chat
At some point iOS defaulted these to selectable. This makes them
not selectable.
2016-01-12 15:31:44 -08:00
Scott Ludwig
de950ccc46 Use scanf and printf compile time format string type checking; fix 64 bit bugs 2016-01-10 13:14:36 -08:00
Scott Ludwig
ac148a79f1 Unify content download in ./run
Also change the leaderboard port and address to 127.0.0.1:8080
2016-01-09 12:44:21 -08:00
Scott Ludwig
087a9eae7d Support for building, running and deploying the server in docker containers.
See README.txt for more information.
2016-01-07 22:10:13 -08:00
Scott Ludwig
88711f1071 Replace deprecated AudioSession* api family with AVAudioSession 2016-01-03 23:25:57 -08:00
Scott Ludwig
c00b4c01f4 Replace deprecated UIKeyboardBoundsUserInfoKey with UIKeyboardFrameEndUserInfoKey 2016-01-03 23:25:22 -08:00
Scott Ludwig
68bbebbd5c Replace deprecated UILineBreakModeWordWrap with NSLineBreakByWordWrapping 2016-01-03 23:24:45 -08:00
Scott Ludwig
ead8ab936a Replace deprecated UITableViewCell initWithFrame with initWithStyle 2016-01-03 23:24:15 -08:00
Scott Ludwig
738f47bb22 Replace deprecated UITextAlignmentCenter with NSTextAlignmentCenter 2016-01-03 23:23:19 -08:00
Scott Ludwig
324a5bc3fb Replace deprecated sizeWithFont with sizeWithAttributes 2016-01-03 23:21:34 -08:00
Scott Ludwig
a95a89826b Remove deprecated setStatusBarHidden 2016-01-03 23:20:54 -08:00
Scott Ludwig
2186f473b5 Fix 64 bit compile warnings 2016-01-03 23:19:26 -08:00
Scott Ludwig
38a32ff15b Icon must be 58x58 not 57x57 2016-01-01 23:32:27 -08:00
Scott Ludwig
59f1673302 correctly name and reference the LaunchImages 2016-01-01 23:30:17 -08:00
Scott Ludwig
e336f04322 remove relocated images from xcode project 2016-01-01 23:28:28 -08:00
Scott Ludwig
afce9e5225 add images Apple now requires for App Store approval 2016-01-01 23:26:12 -08:00
Scott Ludwig
bbb2b60a2a Switch OS X build to 64 bit and fix a merge bug 2016-01-01 23:09:50 -08:00
Scott Ludwig
35da7845ce Fix chat form layout for wider landscape screens. 2016-01-01 22:50:44 -08:00
Scott Ludwig
42efd09692 Fix use of 'json' instead of 'j'
This bug was created when switching from simplejson to json module,
due to python 2.5->2.7 migration. Any variables named 'json' needed
to be renamed, and this is an instance that was missed.
2016-01-01 22:49:14 -08:00
Scott Ludwig
39b5b9e923 Make startup release logging less verbose 2016-01-01 22:41:21 -08:00
Scott Ludwig
3c8476388a Keep debug and release directories in repo 2016-01-01 14:36:17 -08:00
Scott Ludwig
dc2c02e54f Fixes to compile 64 bit server on Ubuntu 14.04 (g++ 4.8.x) 2016-01-01 14:34:34 -08:00
Scott Ludwig
d7710255aa Fix width/height of chatviewcontroller
Still layout issue of the toolbar items but that can be fixed later.
It's functional now.
2016-01-01 14:31:25 -08:00
Scott Ludwig
636484ea31 Fix web view layout 2016-01-01 14:30:49 -08:00
Scott Ludwig
aafb64cf70 Bump MP protocol version because protocol changed 2016-01-01 14:28:31 -08:00
Scott Ludwig
3618d1a6b2 Fix 32/64 bit MP message structure packing issues
- 32 bit and 64 bit should work the same way now (need to test).
  The server compiles 32 bit at the moment.
- 8 bytes from the NetMessage header were removed, and the protocol
  version was bumped.
2016-01-01 14:26:25 -08:00
Scott Ludwig
fd51170580 Fix referencing freed memory during PlayersUpdate message 2016-01-01 14:23:25 -08:00
Scott Ludwig
43a537b4ae Leaderboard fixes for latest GAE 2016-01-01 14:20:55 -08:00
Scott Ludwig
20706d0f36 Fix packing for Preferences 2016-01-01 14:08:28 -08:00
Scott Ludwig
c070a9169b Fix so that http post results get returned 2016-01-01 14:03:17 -08:00
Scott Ludwig
b2e2d5efda Fix server warnings and errors resulting from LLVM based compile 2016-01-01 14:02:35 -08:00
Scott Ludwig
d7f5308907 Remove this return that was there due to alignment issues 2016-01-01 13:58:05 -08:00
Scott Ludwig
a00848e6b9 Use default structure packing, rather than a universal 2. The system headers
don't work setting 2 universally. Fixing issues as I find them.
2016-01-01 13:57:23 -08:00
Scott Ludwig
79fcd2ec18 Minor fix - memset like the author wanted. 2016-01-01 13:56:39 -08:00