Changeset 564 for trollforge
- Timestamp:
- 01/11/12 03:05:04 (17 months ago)
- Location:
- trollforge/lastmeasure/server
- Files:
-
- 2 edited
-
lmkeywords.h (modified) (1 diff)
-
lmresource.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trollforge/lastmeasure/server/lmkeywords.h
r563 r564 270 270 "castrated men no sperm", "club penguin", "cock dick sex .gif", "feenode", 271 271 "ice warriors", "ice warriors club", "ice warriors of cp", "sieg heil", 272 /* }}} 272 /* }}} */ 273 273 /* {{{ Other */ 274 274 "300", "aspergillus", "bds", "bds marketing", "bds suspension", -
trollforge/lastmeasure/server/lmresource.h
r563 r564 10 10 #include "lmkeywords.h" 11 11 12 #ifndef SOFT 12 13 static size_t imagecount = 33; 14 #else 15 static size_t imagecount = 13; 16 #endif 17 13 18 //static size_t soundcount = 16; 14 19 15 20 static char const *staticnames[] = 16 21 { 22 #ifndef SOFT 17 23 /* Static images - 33 */ 18 24 "/images/awesome.jpg", "/images/Pain4.jpg", … … 33 39 "/images/Pain3.jpg", "/images/jar.jpg", 34 40 "/images/lunch.jpg", 41 #else 42 /* Static soft images - 13 */ 43 "/soft/christmas.jpg", "/soft/pillowfight.jpg", 44 "/soft/eww.jpg", "/soft/pooped.jpg", 45 "/soft/freak.jpg", "/soft/rustina.jpg", 46 "/soft/hello.jpg", "/soft/spin.gif", 47 "/soft/lemonparty.jpg", "/soft/tubgirl.jpg", 48 "/soft/loopback.jpg", "/soft/weightlifter.jpg", 49 "/soft/ouch.jpg", 50 #endif 35 51 36 52 /* Static sound samples - 16 */ … … 347 363 size_t prefixlen = strlen(prefix); 348 364 349 for (size_t i = 0; i < 32; i++) 365 for (size_t i = 0; i < 32; i++) // XXX Why 32? 350 366 { 351 367 char const *name = staticnames[rand() % NSTATICS]; … … 370 386 for(size_t i = 0; i < imagecount; i++) 371 387 { 372 ret << " images[" << i << "] = 'http://" << host << " /images/" << staticnames[i] << "';\r\n";388 ret << " images[" << i << "] = 'http://" << host << "" << staticnames[i] << "';\r\n"; 373 389 } 374 390 375 391 ret << 376 377 392 "var delay = 10;\r\n" 378 393 "var step = .2;\r\n" 379 394 "var curstep = 0;\r\n" 380 395 381 "window.resizeTo(" << width << " , " << height << ");\r\n"396 "window.resizeTo(" << width << ", " << height << ");\r\n" 382 397 "var centerX = (self.screen.width - document.body.clientWidth) / 2;\r\n" 383 398 "var centerY = (self.screen.height - document.body.clientHeight - 120) / 2;\r\n"
Note: See TracChangeset
for help on using the changeset viewer.
