Changeset 564


Ignore:
Timestamp:
01/11/12 03:05:04 (17 months ago)
Author:
literalka
Message:

tiny shit

Location:
trollforge/lastmeasure/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trollforge/lastmeasure/server/lmkeywords.h

    r563 r564  
    270270    "castrated men no sperm", "club penguin", "cock dick sex .gif", "feenode", 
    271271    "ice warriors", "ice warriors club", "ice warriors of cp", "sieg heil", 
    272 /* }}} 
     272/* }}} */ 
    273273/* {{{ Other */ 
    274274    "300", "aspergillus", "bds", "bds marketing", "bds suspension", 
  • trollforge/lastmeasure/server/lmresource.h

    r563 r564  
    1010#include "lmkeywords.h" 
    1111 
     12#ifndef SOFT 
    1213static size_t imagecount = 33; 
     14#else 
     15static size_t imagecount = 13; 
     16#endif 
     17 
    1318//static size_t soundcount = 16; 
    1419 
    1520static char const *staticnames[] = 
    1621{ 
     22#ifndef SOFT 
    1723    /* Static images - 33 */ 
    1824    "/images/awesome.jpg",    "/images/Pain4.jpg", 
     
    3339    "/images/Pain3.jpg",      "/images/jar.jpg", 
    3440    "/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 
    3551 
    3652    /* Static sound samples - 16 */ 
     
    347363        size_t prefixlen = strlen(prefix); 
    348364 
    349         for (size_t i = 0; i < 32; i++) 
     365        for (size_t i = 0; i < 32; i++) // XXX Why 32? 
    350366        { 
    351367            char const *name = staticnames[rand() % NSTATICS]; 
     
    370386        for(size_t i = 0; i < imagecount; i++) 
    371387        { 
    372             ret << "    images[" << i << "] = 'http://" << host << "/images/" << staticnames[i] << "';\r\n"; 
     388            ret << "    images[" << i << "] = 'http://" << host << "" << staticnames[i] << "';\r\n"; 
    373389        } 
    374390 
    375391        ret << 
    376  
    377392        "var delay = 10;\r\n" 
    378393        "var step = .2;\r\n" 
    379394        "var curstep = 0;\r\n" 
    380395 
    381         "window.resizeTo(" << width << " , " << height << ");\r\n" 
     396        "window.resizeTo(" << width << ", " << height << ");\r\n" 
    382397        "var centerX = (self.screen.width - document.body.clientWidth) / 2;\r\n" 
    383398        "var centerY = (self.screen.height - document.body.clientHeight - 120) / 2;\r\n" 
Note: See TracChangeset for help on using the changeset viewer.